Skip to main content

Just catch all .vtt files together

ID
4662180
date
2024-02-16 09:19:13+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
ea65e68
message
Just catch all .vtt files together
changed files
1 file, 1 addition, 4 deletions

Changed files

web/save_youtube_videos.py (6177) → web/save_youtube_videos.py (6040)

diff --git a/web/save_youtube_videos.py b/web/save_youtube_videos.py
index 1478495..bbdd15c 100755
--- a/web/save_youtube_videos.py
+++ b/web/save_youtube_videos.py
@@ -123,10 +123,7 @@ def classify_file_type(
 
     if filename.name.endswith(
         (
-            f" [{video_id}].en.vtt",
-            f" [{video_id}].en-US.vtt",
-            f" [{video_id}].en-GB.vtt",
-            f" [{video_id}].en-CA.vtt",
+            ".vtt",
             f" [{video_id}].live_chat.json",
         )
     ):