Merge pull request #23 from Sogolumbo/AutoDetectJsonFileName

Autodetect json file name
pull/15/merge
Casey Chu 2020-10-09 18:26:44 -07:00 committed by GitHub
commit 24e3673424
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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