Skip to content

Commit

Permalink
Merge pull request #3 from MoreFoxBeans/seth
Browse files Browse the repository at this point in the history
Fix some typos and formatting
  • Loading branch information
MoreFoxBeans committed Jul 7, 2021
2 parents a5b21ec + cc3fb25 commit 99eed4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
template_path = 'headers_auth.json_template'
out_path = 'headers_auth.json'

cookie = input("Paste your cookie here:")
cookie = input('Paste your cookie here:')

try:
file = open(template_path, 'r')
Expand Down
6 changes: 3 additions & 3 deletions transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
try:
ytmusic = YTMusic('headers_auth.json')
except:
print('[FATAL] Could not load the auth file! Create it with ./setup.py')
print('Could not load the auth file! Create it by following the "First-time setup" section of the README.')

root = "playlists"
root = 'playlists'

for file in os.listdir(root):
if fnmatch.fnmatch(file, '*.csv'):
Expand Down Expand Up @@ -39,6 +39,6 @@
else:
try:
song = ytmusic.get_song(item)
print('[ OK ] Added song "' + song['videoDetails']['title'] + '"!')
print(f'[ OK ] Added song {song["videoDetails"]["title"]}!')
except:
print('[ OK ] Added song!')

0 comments on commit 99eed4c

Please sign in to comment.