bugfix of windows cmd
The replacement of the longdash needs to take place before the first print argument using the title string, to fix the bug on windows command line interface.master
parent
f167a03079
commit
cb9e63ab20
|
@ -319,6 +319,7 @@ def download_track(track):
|
|||
print('')
|
||||
return
|
||||
title = track.title
|
||||
title = title.replace("–", "-")
|
||||
print("Downloading " + title)
|
||||
|
||||
#filename
|
||||
|
@ -337,7 +338,7 @@ def download_track(track):
|
|||
title = ''.join(c for c in title if c not in invalid_chars)
|
||||
filename = title + '.mp3'
|
||||
|
||||
title = title.replace("–", "-")
|
||||
|
||||
|
||||
# Download
|
||||
if not os.path.isfile(filename):
|
||||
|
|
Loading…
Reference in New Issue