Skip to main content

We don’t need to look for a description here

ID
acbc12f
date
2024-02-15 21:31:00+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
047d549
message
We don't need to look for a description here
changed files
1 file, 1 addition, 9 deletions

Changed files

web/save_youtube_videos.py (4444) → web/save_youtube_videos.py (4222)

diff --git a/web/save_youtube_videos.py b/web/save_youtube_videos.py
index f82b811..90d36e1 100755
--- a/web/save_youtube_videos.py
+++ b/web/save_youtube_videos.py
@@ -113,11 +113,6 @@ def download_video(*, video_id, download_root):
         for f in matching_filenames
     )
 
-    has_description = any(
-        f.endswith((f"-{video_id}.description", f" [{video_id}].description"))
-        for f in matching_filenames
-    )
-
     has_info = any(
         f.endswith((f"-{video_id}.info.json", f" [{video_id}].info.json"))
         for f in matching_filenames
@@ -128,7 +123,7 @@ def download_video(*, video_id, download_root):
         for f in matching_filenames
     )
 
-    if has_video and has_description and has_info:
+    if has_video and has_thumbnail and has_info:
         return
 
     # Construct the command.  The expensive bit is redownloading the
@@ -139,9 +134,6 @@ def download_video(*, video_id, download_root):
     if has_video:
         cmd.append("--skip-download")
 
-    if not has_description:
-        cmd.append("--write-description")
-
     if not has_info:
         cmd.append("--write-info-json")