change order of trimSong() for efficiency

This commit is contained in:
Ritiek Malhotra
2017-02-10 16:43:58 +05:30
committed by GitHub
parent 337b3ff909
commit ebe4ac1b3d

View File

@@ -93,7 +93,6 @@ def checkExists(islist):
os.remove("Music/" + title + extension)
return False
if islist:
trimSong()
return True
else:
prompt = raw_input('Song with same name has already been downloaded. Re-download? (y/n/play): ')
@@ -232,9 +231,7 @@ while True:
convertSong()
if isSpotify():
fixSong()
trimSong()
else:
trimSong()
trimSong()
except KeyboardInterrupt:
graceQuit()
except: