Skip to content
Snippets Groups Projects
Commit 9a556cd7 authored by Hector Blondel's avatar Hector Blondel
Browse files

correction du .format

parent 397c60fb
Branches
No related tags found
No related merge requests found
...@@ -27,7 +27,8 @@ while True : ...@@ -27,7 +27,8 @@ while True :
i = 0 i = 0
while i < len(all_videos) and all_videos[i] not in seen_videos : while i < len(all_videos) and all_videos[i] not in seen_videos :
vid = all_videos[i] vid = all_videos[i]
command = "yt-dlp -f 'ba' -x --audio-format mp3 https://www.youtube.com/watch?v={0} -o '%(id)s.mp3' ".format("vid") print(vid)
command = "yt-dlp -f 'ba' -x --audio-format mp3 https://www.youtube.com/watch?v={0} -o '%(id)s.mp3' ".format(vid)
os.system(command) os.system(command)
seen_videos.append(vid) seen_videos.append(vid)
i += 1 i += 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment