Skip to content

Commit

Permalink
Merge pull request #47 from oskvr37/dev
Browse files Browse the repository at this point in the history
Merge Dev
  • Loading branch information
oskvr37 authored Nov 11, 2024
2 parents 82a9571 + 907e04d commit c460d7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tiddl/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def test_formatFilename(self):
"videoCover": None,
},
"mixes": {"TRACK_MIX": "001ec78dae0d4a470999adefffd570"},
"playlistNumber": None
}

self.assertEqual(formatFilename("{title}", track), ("", "HAUTE COUTURE"))
Expand Down
2 changes: 1 addition & 1 deletion tiddl/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def formatFilename(template: str, track: Track, playlist=""):
"playlist": playlist.strip(),
"released": release_date.strftime("%m-%d-%Y"),
"year": release_date.strftime("%Y"),
"playlist_number": str(track["playlistNumber"]) or ""
"playlist_number": str(track.get("playlistNumber", ""))
}

dirs = template.split("/")
Expand Down

0 comments on commit c460d7a

Please sign in to comment.