added missing genre filter

This commit is contained in:
Martin Wagner 2021-07-22 19:25:55 +02:00
parent 14d4766283
commit 6ccd853d82

View File

@ -795,7 +795,7 @@ class Client(MPDClient):
genre_filter=("genre", genre)
album_candidates=self.comp_list("album", artist_type, artist, *genre_filter)
for album in album_candidates:
years=self.comp_list("date", "album", album, artist_type, artist)
years=self.comp_list("date", "album", album, artist_type, artist, *genre_filter)
for year in years:
songs=self.find("album", album, "date", year, artist_type, artist, *genre_filter)
cover_path=self.get_cover_path(songs[0])