Make playlist tracks match case-insensitive. Fix #1720

This commit is contained in:
Deluan 2023-03-10 12:29:38 -05:00 committed by Joe Stump
parent ce957a29f0
commit 915423e241
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -100,7 +100,7 @@ func (r *mediaFileRepository) GetAll(options ...model.QueryOptions) (model.Media
}
func (r *mediaFileRepository) FindByPath(path string) (*model.MediaFile, error) {
sel := r.newSelect().Columns("*").Where(Eq{"path": path})
sel := r.newSelect().Columns("*").Where(Like{"path": path})
var res model.MediaFiles
if err := r.queryAll(sel, &res); err != nil {
return nil, err