Add a check for iPlayer downloads
- ID
98fe938- date
2024-05-14 21:38:29+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
48f229a- message
Add a check for iPlayer downloads- changed files
1 file, 3 additions
Changed files
web/yt-dlp.py (3425) → web/yt-dlp.py (3587)
diff --git a/web/yt-dlp.py b/web/yt-dlp.py
index 11202ff..1a92119 100755
--- a/web/yt-dlp.py
+++ b/web/yt-dlp.py
@@ -77,6 +77,9 @@ def check_arguments(argv: list[str]) -> None:
):
sys.exit("Did you forget to add --convert-subtitles=srt?")
+ if any("bbc.co.uk" in u for u in argv) and "--output=%(title)s.%(ext)s" not in argv:
+ sys.exit('Did you forget to add --output="%(title)s.%(ext)s"?')
+
if __name__ == "__main__":
argv = sys.argv[1:]