mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-28 14:31:15 +00:00
classify albums ending with "the album" as soundtracks
This commit is contained in:
1 parent
27a572bc9a
commit
5f863a45a8
1 file changed
+7
-1
@@ -103,11 +103,17 @@ class Album:
|
||||
"""
|
||||
Checks if the album is a soundtrack.
|
||||
"""
|
||||
title = self.og_title.lower()
|
||||
|
||||
keywords = ["motion picture", "soundtrack"]
|
||||
for keyword in keywords:
|
||||
if keyword in self.og_title.lower():
|
||||
if keyword in title:
|
||||
return True
|
||||
|
||||
# if og_title ends with "the album"
|
||||
if len(title) > 10 and title.endswith("the album"):
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
def is_compilation(self) -> bool:
|
||||
|
||||
Reference in new issue
Block a user