mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-12-08 20:39:08 +00:00
Default number to None
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user