Skip to content
This repository has been archived by the owner on Aug 14, 2022. It is now read-only.

Commit

Permalink
Sanitize filenames.
Browse files Browse the repository at this point in the history
  • Loading branch information
Slyyxp committed Sep 2, 2020
1 parent 20054cf commit 6c2844d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bugs.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ def album_rip(album_id):
for track in meta['list'][0]['album_info']['result']['tracks']:
track_quality = utils.determine_quality(track=track)
pre_path = os.path.join(album_path, "{}. .BugsPy".format(track['track_no']))
post_path = os.path.join(album_path, "{}. {}.{}".format(track['track_no'], track['track_title'],
track_quality))
post_path = utils.sanitize(os.path.join(album_path, "{}. {}.{}".format(track['track_no'], track['track_title'],
track_quality)))
if utils.exist_check(post_path):
pass
else:
Expand Down

0 comments on commit 6c2844d

Please sign in to comment.