feat: mark albums that start with "the essential" as compilations

This commit is contained in:
geoffrey45
2023-02-07 12:31:00 +03:00
parent b1ac3e9a07
commit 9754c1a522
+3 -3
View File
@@ -130,7 +130,7 @@ class Album:
if self.is_compilation:
return
self.is_EP = self.check_is_EP()
self.is_EP = self.check_is_ep()
def check_is_soundtrack(self) -> bool:
"""
@@ -150,9 +150,9 @@ class Album:
artists = [a.name for a in self.albumartists] # type: ignore
artists = "".join(artists).lower()
return "various artists" in artists
return ("various artists" in artists) or self.title.lower().startswith('the essential')
def check_is_EP(self) -> bool:
def check_is_ep(self) -> bool:
"""
Checks if the album is an EP.
"""