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