Skip to main content

Remember to run black!

ID
a4b1cdb
date
2024-03-13 08:55:58+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
067f415
message
Remember to run black!
changed files
1 file, 3 additions, 1 deletion

Changed files

web/yt-dlp.py (2439) → web/yt-dlp.py (2453)

diff --git a/web/yt-dlp.py b/web/yt-dlp.py
index 9653e20..239e2ee 100755
--- a/web/yt-dlp.py
+++ b/web/yt-dlp.py
@@ -49,7 +49,9 @@ if __name__ == "__main__":
     # Note: I could add this automatically, but it means vanilla yt-dlp
     # and my wrapper would behave differently.  That could get confusing!
     # So just add a prompt rather than fixing it.
-    if ("--write-subs" in remaining_args or "--write-auto-subs" in remaining_args) and "--convert-subtitles=srt" not in remaining_args:
+    if (
+        "--write-subs" in remaining_args or "--write-auto-subs" in remaining_args
+    ) and "--convert-subtitles=srt" not in remaining_args:
         sys.exit(f"Did you forget to add --convert-subtitles=srt?")
 
     # If this is a YouTube URL but it's not a playlist, then it's probably