mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
change order of trimSong() for efficiency
This commit is contained in:
@@ -93,7 +93,6 @@ def checkExists(islist):
|
|||||||
os.remove("Music/" + title + extension)
|
os.remove("Music/" + title + extension)
|
||||||
return False
|
return False
|
||||||
if islist:
|
if islist:
|
||||||
trimSong()
|
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
prompt = raw_input('Song with same name has already been downloaded. Re-download? (y/n/play): ')
|
prompt = raw_input('Song with same name has already been downloaded. Re-download? (y/n/play): ')
|
||||||
@@ -232,9 +231,7 @@ while True:
|
|||||||
convertSong()
|
convertSong()
|
||||||
if isSpotify():
|
if isSpotify():
|
||||||
fixSong()
|
fixSong()
|
||||||
trimSong()
|
trimSong()
|
||||||
else:
|
|
||||||
trimSong()
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
graceQuit()
|
graceQuit()
|
||||||
except:
|
except:
|
||||||
|
|||||||
Reference in New Issue
Block a user