Merge pull request #23 from Sogolumbo/AutoDetectJsonFileName

Autodetect json file name
This commit is contained in:
Casey Chu
2020-10-09 18:26:44 -07:00
committed by GitHub

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: