diff --git a/setup.py b/setup.py index 0197144..9de9ca9 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name="tiddl", - version="1.9.1", + version="1.9.2", description="TIDDL (Tidal Downloader) is a Python CLI application that allows downloading Tidal tracks.", long_description=open("README.md", encoding="utf-8").read(), long_description_content_type="text/markdown", diff --git a/tiddl/utils.py b/tiddl/utils.py index 25b6554..334c5e2 100644 --- a/tiddl/utils.py +++ b/tiddl/utils.py @@ -78,7 +78,8 @@ def formatFilename(template: str, track: Track, playlist=""): artists = [artist["name"].strip() for artist in track["artists"]] release_date = datetime.strptime( - track["streamStartDate"], "%Y-%m-%dT%H:%M:%S.000+0000" + track["streamStartDate"] or "1970-01-01T00:00:00.000+0000", + "%Y-%m-%dT%H:%M:%S.000+0000", ) formatted_track: FormattedTrack = {