Merge pull request #23 from Sogolumbo/AutoDetectJsonFileName
Autodetect json file namepull/15/merge
commit
24e3673424
|
@ -130,6 +130,7 @@ def main():
|
||||||
# If they didn't give a filename, then just prompt them. (They probably just double-clicked.)
|
# If they didn't give a filename, then just prompt them. (They probably just double-clicked.)
|
||||||
while not args.file:
|
while not args.file:
|
||||||
args.file = input('Enter a file name (e.g. playlists.txt): ')
|
args.file = input('Enter a file name (e.g. playlists.txt): ')
|
||||||
|
args.format = args.file.split('.')[-1]
|
||||||
|
|
||||||
# Log into the Spotify API.
|
# Log into the Spotify API.
|
||||||
if args.token:
|
if args.token:
|
||||||
|
|
Loading…
Reference in New Issue