mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 14:34:42 +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:
1 parent
7275755f20
commit
8f6f1d1c0f
2 files changed
+11
-3
No files matched your search
@@ -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