Make playlist tracks match case-insensitive. Fix #1720

This commit is contained in:
Deluan 2023-03-10 12:29:38 -05:00
parent e16e3d2e7b
commit c88e1baa7c
1 changed files with 1 additions and 1 deletions

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