Search by filename (#6656)

Implements https://github.com/AzuraCast/AzuraCast/discussions/6655
This commit is contained in:
pozhiloy-enotik 2023-10-10 16:38:07 +03:00 committed by GitHub
parent c087ccc1d9
commit c29cfbb01d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ final class ListAction implements SingleActionInterface
}
if (!empty($searchPhrase)) {
$mediaQueryBuilder->andWhere('(sm.title LIKE :query OR sm.artist LIKE :query)')
$mediaQueryBuilder->andWhere('(sm.title LIKE :query OR sm.artist LIKE :query OR sm.path LIKE :query)')
->setParameter('query', '%' . $searchPhrase . '%');
}