Skip to main content

yt-dlp: add a missing comment

ID
9a8b746
date
2025-10-05 07:36:16+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
0ec1ff5
message
yt-dlp: add a missing comment
changed files
1 file, 2 additions, 1 deletion

Changed files

yt-dlp_alexwlchan.py (3497) → yt-dlp_alexwlchan.py (3627)

diff --git a/yt-dlp_alexwlchan.py b/yt-dlp_alexwlchan.py
index 5a7b173..0f8195b 100755
--- a/yt-dlp_alexwlchan.py
+++ b/yt-dlp_alexwlchan.py
@@ -80,8 +80,9 @@ class VideoInfo(TypedDict):
 
 
 def download_video(url: str) -> VideoInfo:
+    # Download all the videos to a temp directory; this allows the caller
+    # to decide exactly where they want the video later.
     tmp_dir = Path(tempfile.mkdtemp())
-
     ydl_opts["outtmpl"] = str(tmp_dir / "%(title)s.%(ext)s")
 
     with YoutubeDL(ydl_opts) as ydl: