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
mauricebasement 2015-01-06 08:50:22 +01:00 committed by flyingrub
parent f167a03079
commit cb9e63ab20
1 changed files with 2 additions and 1 deletions

View File

@ -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):