mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
use create_hash to compare album titles for is_single
+ add a few string checks for album.is_single
This commit is contained in:
@@ -68,6 +68,7 @@ def extract_date(date_str: str | None, filepath: str) -> int:
|
||||
try:
|
||||
return int(date_str.split("-")[0])
|
||||
except: # pylint: disable=bare-except
|
||||
# TODO: USE FILEPATH LAST-MOD DATE instead of current date
|
||||
return datetime.date.today().today().year
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user