classify albums ending with "the album" as soundtracks

This commit is contained in:
wanji
2026-01-02 21:52:25 +03:00
parent 27a572bc9a
commit 5f863a45a8
+7 -1
View File
@@ -103,9 +103,15 @@ class Album:
""" """
Checks if the album is a soundtrack. Checks if the album is a soundtrack.
""" """
title = self.og_title.lower()
keywords = ["motion picture", "soundtrack"] keywords = ["motion picture", "soundtrack"]
for keyword in keywords: 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 True
return False return False