DbApi: fix bugs in getPlaylistsWhere.
This commit is contained in:
parent
26f49d438d
commit
3d6d51b5ce
@ -556,10 +556,12 @@ public class DbApi {
|
||||
|
||||
if (params.albumId || params.artistId || params.mediaFileId) {
|
||||
query.append(' JOIN playlists_media_files pmf ON ')
|
||||
.append(' pmf.playlist_id = p.id ')
|
||||
.append(' JOIN media_files mf ON ')
|
||||
.append(' pmf.media_file_id = mf.id ') }
|
||||
|
||||
if (params.mediaFileId) {
|
||||
query.append(' AND mf.media_file_id = ? ')
|
||||
query.append(' AND mf.id = ? ')
|
||||
sqlParams << params.mediaFileId }
|
||||
|
||||
if (params.albumId) {
|
||||
|
Loading…
Reference in New Issue
Block a user