From 9a556cd7fe78b3ef76e4590d3e15d2f6e6a9162e Mon Sep 17 00:00:00 2001 From: Blondel Hector <hector.blondel@student-cs.fr> Date: Sun, 20 Mar 2022 11:41:23 +0100 Subject: [PATCH] correction du .format --- download_server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/download_server.py b/download_server.py index 591b2a8..06d3c09 100644 --- a/download_server.py +++ b/download_server.py @@ -27,7 +27,8 @@ while True : i = 0 while i < len(all_videos) and all_videos[i] not in seen_videos : 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) seen_videos.append(vid) i += 1 -- GitLab