mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
classify albums ending with "the album" as soundtracks
This commit is contained in:
@@ -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