extract feat from album titles

This commit is contained in:
geoffrey45
2023-04-16 17:45:13 +03:00
parent 74f52ce2e3
commit f5615f4d31
6 changed files with 63 additions and 21 deletions
+2 -2
View File
@@ -71,7 +71,7 @@ class AlbumStore:
Returns N albums by the given albumartist, excluding the specified album.
"""
albums = [album for album in cls.albums if artisthash in album.albumartisthash]
albums = [album for album in cls.albums if artisthash in album.albumartists_hashes]
albums = [album for album in albums if album.albumhash != exclude]
@@ -108,7 +108,7 @@ class AlbumStore:
"""
Returns all albums by the given artist.
"""
return [album for album in cls.albums if artisthash in album.albumartisthash]
return [album for album in cls.albums if artisthash in album.albumartists_hashes]
@classmethod
def count_albums_by_artisthash(cls, artisthash: str):