Default number to None

This commit is contained in:
Ritiek Malhotra
2017-05-24 19:46:27 +05:30
committed by GitHub
parent a8b33775e9
commit 602af2a91c

View File

@@ -161,7 +161,7 @@ def fixSong(music_file, meta_tags):
audiofile.tag.save(version=(2,3,0)) audiofile.tag.save(version=(2,3,0))
# Logic behind preparing the song to download to finishing meta-tags # Logic behind preparing the song to download to finishing meta-tags
def grabSingle(raw_song, number): def grabSingle(raw_song, number=None):
if number: if number:
islist = True islist = True
else: else:
@@ -260,7 +260,7 @@ while True:
print('Enter a Spotify URL or Song Name: ') print('Enter a Spotify URL or Song Name: ')
command = raw_input('>> ') command = raw_input('>> ')
print('') print('')
grabSingle(raw_song=command, number=None) grabSingle(raw_song=command)
print('') print('')
except KeyboardInterrupt: except KeyboardInterrupt:
graceQuit() graceQuit()