Skip to content

Commit

Permalink
added verbose to download.
Browse files Browse the repository at this point in the history
  • Loading branch information
remi1111 committed Mar 30, 2024
1 parent 8766daa commit 3b281ce
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@

def download_ids(id_dict, verbose=False):
""" Download all songs from a dictionary. """
for song in id_dict:
title = "~/audio/" + song['song artist'] + " - " + song['song name'] + ".%(ext)s"
for key in id_dict:
song = id_dict[key]
if verbose:
print(song)
title = "~/audio/" + song['song artist'] + " - " + song['song name youtube'] + ".%(ext)s"
page = "https://www.youtube.com/watch?v=" + song['video id']
if verbose:
print(song['song name'] + "\t id: " + song['video id'])
print(song['song name youtube'] + "\t id: " + song['video id'])
subprocess.run(["yt-dlp",
'-x',
'-f',
Expand Down

0 comments on commit 3b281ce

Please sign in to comment.