Skip to content

Commit

Permalink
Append track number to filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
Slyyxp committed Feb 7, 2022
1 parent 6425399 commit 14f8d46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rsack/bugs.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def _download(self, track):
else:
# Directory management
file_path = os.path.join(
self.album_path, f"{track['track_title']}.{determine_quality(track['svc_flac_yn'])}")
self.album_path, f"{track['track_no']}. {track['track_title']}.{determine_quality(track['svc_flac_yn'])}")
with open(file_path, 'wb') as f:
for chunk in r.iter_content(32 * 1024):
if chunk:
Expand Down

0 comments on commit 14f8d46

Please sign in to comment.