Skip to main content

Remove an unused import

ID
9f4c4ff
date
2024-01-13 13:31:46+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
f885c50
message
Remove an unused import
changed files
1 file, 1 addition, 2 deletions

Changed files

web/yt-dlp.py (1966) → web/yt-dlp.py (1958)

diff --git a/web/yt-dlp.py b/web/yt-dlp.py
index 5629cac..8f12061 100755
--- a/web/yt-dlp.py
+++ b/web/yt-dlp.py
@@ -10,7 +10,6 @@ See https://alexwlchan.net/2020/how-to-do-parallel-downloads-with-youtube-dl/
 """
 
 import os
-import shlex
 import subprocess
 import sys
 
@@ -56,7 +55,7 @@ if __name__ == "__main__":
             [yt_dlp_path, "--get-id", youtube_url], stdout=subprocess.PIPE
         )
 
-        subprocess.Popen(
+        subprocess.check_call(
             ["xargs", "-I", "{}", "-P", "5", yt_dlp_path]
             + remaining_args
             + ["https://youtube.com/watch?v={}"],