From 14f8d46eea199617c0ce40a36ced27ac87295612 Mon Sep 17 00:00:00 2001 From: Slyyxp <11709831+Slyyxp@users.noreply.github.com> Date: Mon, 7 Feb 2022 16:10:26 +0000 Subject: [PATCH] Append track number to filenames --- rsack/bugs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rsack/bugs.py b/rsack/bugs.py index b250098..128b508 100644 --- a/rsack/bugs.py +++ b/rsack/bugs.py @@ -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: