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