mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +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.
|
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
|
return True
|
||||||
|
|
||||||
|
# if og_title ends with "the album"
|
||||||
|
if len(title) > 10 and title.endswith("the album"):
|
||||||
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def is_compilation(self) -> bool:
|
def is_compilation(self) -> bool:
|
||||||
|
|||||||
Reference in New Issue
Block a user