We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5de024 commit 8a19606Copy full SHA for 8a19606
subdaap/cache.py
@@ -410,9 +410,19 @@ def get_cached_items(self):
410
`items`.`file_suffix`
411
FROM
412
`items`
413
+ LEFT OUTER JOIN
414
+ `artists` ON `items`.`artist_id`=`artists`.`id`
415
416
+ `albums` ON `items`.`album_id`=`albums`.`id`
417
WHERE
- `items`.`cache` = 1 AND
- `items`.`exclude` = 0
418
+ (
419
+ `items`.`cache` = 1 OR
420
+ COALESCE(`artists`.`cache`, 0) = 1 OR
421
+ COALESCE(`albums`.`cache`, 0) = 1
422
+ ) AND
423
+ `items`.`exclude` = 0 AND
424
+ COALESCE(`artists`.`exclude`, 0) = 0 AND
425
+ COALESCE(`albums`.`exclude`, 0) = 0
426
""")
427
428
def cache(self):
0 commit comments