// THE INSTALLED yt-dlp'S OPTION TABLE (yt-dlp 2026.10.26), every option its // parser accepts — the ones `--help` hides included (`--user-agent`, // `--referer`, …): [short, long, takes a value]. lib/networkExits.ts resolves // a listing's argv against it with yt-dlp's own rule — an exact long name, // else the one long name the argument is a prefix of; short options // clustered, a value-taking one swallowing the rest of its cluster — so an // abbreviation (`--pas`, `--cookies-from-b`, `--prox`) or a glued value // (`-f22`) is read as yt-dlp reads it. // // GENERATED from yt-dlp's own parser (`yt_dlp.options.create_parser()`) by // YTDLP_OPTIONS_DUMP below, run with the interpreter of the yt-dlp on PATH. // lib/networkExits.test.ts runs it again and FAILS when the installed yt-dlp // adds, renames or re-arities an option: regenerate this table then. // // Pure data; client-safe. export const YTDLP_OPTIONS_VERSION = "2026.10.26"; export const YTDLP_OPTIONS_DUMP = "import json, yt_dlp\nfrom yt_dlp.options import create_parser\np = create_parser()\nrows = []\nfor o in p._get_all_options():\n for i, l in enumerate(o._long_opts):\n rows.append([o._short_opts[0][1] if (o._short_opts and i == 0) else None, l, bool(o.takes_value())])\n for s in o._short_opts[1:]:\n rows.append([s[1], o._long_opts[0], bool(o.takes_value())])\nprint(json.dumps({\"version\": yt_dlp.version.__version__, \"rows\": rows}))\n"; export const YTDLP_OPTIONS: ReadonlyArray = [ [null, "--xattr-set-filesize", false], [null, "--dump-user-agent", false], [null, "--youtube-include-dash-manifest", false], [null, "--no-youtube-skip-dash-manifest", false], [null, "--youtube-skip-dash-manifest", false], [null, "--no-youtube-include-dash-manifest", false], [null, "--youtube-include-hls-manifest", false], [null, "--no-youtube-skip-hls-manifest", false], [null, "--youtube-skip-hls-manifest", false], [null, "--no-youtube-include-hls-manifest", false], [null, "--youtube-print-sig-code", false], [null, "--sponskrub", false], [null, "--no-sponskrub", false], [null, "--sponskrub-cut", false], [null, "--no-sponskrub-cut", false], [null, "--sponskrub-force", false], [null, "--no-sponskrub-force", false], [null, "--prefer-avconv", false], [null, "--no-prefer-ffmpeg", false], [null, "--prefer-ffmpeg", false], [null, "--no-prefer-avconv", false], [null, "--call-home", false], [null, "--no-call-home", false], [null, "--include-ads", false], [null, "--no-include-ads", false], [null, "--write-annotations", false], [null, "--no-write-annotations", false], [null, "--sponskrub-location", true], [null, "--sponskrub-args", true], [null, "--cn-verification-proxy", true], ["h", "--help", false], [null, "--version", false], ["U", "--update", false], [null, "--no-update", false], [null, "--update-to", true], ["i", "--ignore-errors", false], [null, "--no-abort-on-error", false], [null, "--abort-on-error", false], [null, "--no-ignore-errors", false], [null, "--list-extractors", false], [null, "--extractor-descriptions", false], [null, "--use-extractors", true], [null, "--ies", true], [null, "--force-generic-extractor", false], [null, "--default-search", true], [null, "--ignore-config", false], [null, "--no-config", false], [null, "--no-config-locations", false], [null, "--config-locations", true], [null, "--plugin-dirs", true], [null, "--no-plugin-dirs", false], [null, "--js-runtimes", true], [null, "--no-js-runtimes", false], [null, "--remote-components", true], [null, "--no-remote-components", false], [null, "--flat-playlist", false], [null, "--no-flat-playlist", false], [null, "--live-from-start", false], [null, "--no-live-from-start", false], [null, "--wait-for-video", true], [null, "--no-wait-for-video", false], [null, "--mark-watched", false], [null, "--no-mark-watched", false], [null, "--no-colors", false], [null, "--no-colours", false], [null, "--color", true], [null, "--compat-options", true], [null, "--alias", true], ["t", "--preset-alias", true], [null, "--proxy", true], [null, "--socket-timeout", true], [null, "--source-address", true], [null, "--impersonate", true], [null, "--list-impersonate-targets", false], ["4", "--force-ipv4", false], ["6", "--force-ipv6", false], [null, "--enable-file-urls", false], [null, "--geo-verification-proxy", true], [null, "--xff", true], [null, "--geo-bypass", false], [null, "--no-geo-bypass", false], [null, "--geo-bypass-country", true], [null, "--geo-bypass-ip-block", true], [null, "--playlist-start", true], [null, "--playlist-end", true], ["I", "--playlist-items", true], [null, "--match-title", true], [null, "--reject-title", true], [null, "--min-filesize", true], [null, "--max-filesize", true], [null, "--date", true], [null, "--datebefore", true], [null, "--dateafter", true], [null, "--min-views", true], [null, "--max-views", true], [null, "--match-filters", true], [null, "--no-match-filters", false], [null, "--break-match-filters", true], [null, "--no-break-match-filters", false], [null, "--no-playlist", false], [null, "--yes-playlist", false], [null, "--age-limit", true], [null, "--download-archive", true], [null, "--no-download-archive", false], [null, "--max-downloads", true], [null, "--break-on-existing", false], [null, "--no-break-on-existing", false], [null, "--break-on-reject", false], [null, "--break-per-input", false], [null, "--no-break-per-input", false], [null, "--skip-playlist-after-errors", true], ["N", "--concurrent-fragments", true], ["r", "--limit-rate", true], [null, "--rate-limit", true], [null, "--throttled-rate", true], ["R", "--retries", true], [null, "--file-access-retries", true], [null, "--fragment-retries", true], [null, "--retry-sleep", true], [null, "--skip-unavailable-fragments", false], [null, "--no-abort-on-unavailable-fragments", false], [null, "--abort-on-unavailable-fragments", false], [null, "--no-skip-unavailable-fragments", false], [null, "--keep-fragments", false], [null, "--no-keep-fragments", false], [null, "--buffer-size", true], [null, "--resize-buffer", false], [null, "--no-resize-buffer", false], [null, "--http-chunk-size", true], [null, "--test", false], [null, "--playlist-reverse", false], [null, "--no-playlist-reverse", false], [null, "--playlist-random", false], [null, "--lazy-playlist", false], [null, "--no-lazy-playlist", false], [null, "--hls-prefer-native", false], [null, "--hls-prefer-ffmpeg", false], [null, "--hls-use-mpegts", false], [null, "--no-hls-use-mpegts", false], [null, "--download-sections", true], [null, "--downloader", true], [null, "--external-downloader", true], [null, "--downloader-args", true], [null, "--external-downloader-args", true], ["a", "--batch-file", true], [null, "--no-batch-file", false], [null, "--id", false], ["P", "--paths", true], ["o", "--output", true], [null, "--output-na-placeholder", true], [null, "--autonumber-size", true], [null, "--autonumber-start", true], [null, "--restrict-filenames", false], [null, "--no-restrict-filenames", false], [null, "--windows-filenames", false], [null, "--no-windows-filenames", false], [null, "--trim-filenames", true], [null, "--trim-file-names", true], ["w", "--no-overwrites", false], [null, "--force-overwrites", false], [null, "--yes-overwrites", false], [null, "--no-force-overwrites", false], ["c", "--continue", false], [null, "--no-continue", false], [null, "--part", false], [null, "--no-part", false], [null, "--mtime", false], [null, "--no-mtime", false], [null, "--write-description", false], [null, "--no-write-description", false], [null, "--write-info-json", false], [null, "--no-write-info-json", false], [null, "--write-playlist-metafiles", false], [null, "--no-write-playlist-metafiles", false], [null, "--clean-info-json", false], [null, "--clean-infojson", false], [null, "--no-clean-info-json", false], [null, "--no-clean-infojson", false], [null, "--write-comments", false], [null, "--get-comments", false], [null, "--no-write-comments", false], [null, "--no-get-comments", false], [null, "--load-info-json", true], [null, "--cookies", true], [null, "--no-cookies", false], [null, "--cookies-from-browser", true], [null, "--no-cookies-from-browser", false], [null, "--cache-dir", true], [null, "--no-cache-dir", false], [null, "--rm-cache-dir", false], [null, "--write-thumbnail", false], [null, "--no-write-thumbnail", false], [null, "--write-all-thumbnails", false], [null, "--list-thumbnails", false], [null, "--write-link", false], [null, "--write-url-link", false], [null, "--write-webloc-link", false], [null, "--write-desktop-link", false], ["q", "--quiet", false], [null, "--no-quiet", false], [null, "--no-warnings", false], ["s", "--simulate", false], [null, "--no-simulate", false], [null, "--ignore-no-formats-error", false], [null, "--no-ignore-no-formats-error", false], [null, "--skip-download", false], [null, "--no-download", false], ["O", "--print", true], [null, "--print-to-file", true], ["g", "--get-url", false], ["e", "--get-title", false], [null, "--get-id", false], [null, "--get-thumbnail", false], [null, "--get-description", false], [null, "--get-duration", false], [null, "--get-filename", false], [null, "--get-format", false], ["j", "--dump-json", false], ["J", "--dump-single-json", false], [null, "--print-json", false], [null, "--force-write-archive", false], [null, "--force-write-download-archive", false], [null, "--force-download-archive", false], [null, "--newline", false], [null, "--no-progress", false], [null, "--progress", false], [null, "--console-title", false], [null, "--progress-template", true], [null, "--progress-delta", true], ["v", "--verbose", false], [null, "--dump-pages", false], [null, "--write-pages", false], [null, "--load-pages", false], [null, "--print-traffic", false], [null, "--encoding", true], [null, "--legacy-server-connect", false], [null, "--no-check-certificates", false], [null, "--prefer-insecure", false], [null, "--prefer-unsecure", false], [null, "--user-agent", true], [null, "--referer", true], [null, "--add-headers", true], [null, "--bidi-workaround", false], [null, "--sleep-requests", true], [null, "--sleep-interval", true], [null, "--min-sleep-interval", true], [null, "--max-sleep-interval", true], [null, "--sleep-subtitles", true], ["f", "--format", true], ["S", "--format-sort", true], [null, "--format-sort-reset", false], [null, "--format-sort-force", false], [null, "--S-force", false], [null, "--no-format-sort-force", false], [null, "--video-multistreams", false], [null, "--no-video-multistreams", false], [null, "--audio-multistreams", false], [null, "--no-audio-multistreams", false], [null, "--all-formats", false], [null, "--prefer-free-formats", false], [null, "--no-prefer-free-formats", false], [null, "--check-formats", false], [null, "--check-all-formats", false], [null, "--no-check-formats", false], ["F", "--list-formats", false], [null, "--list-formats-as-table", false], [null, "--list-formats-old", false], [null, "--no-list-formats-as-table", false], [null, "--merge-output-format", true], [null, "--allow-unplayable-formats", false], [null, "--no-allow-unplayable-formats", false], [null, "--write-subs", false], [null, "--write-srt", false], [null, "--no-write-subs", false], [null, "--no-write-srt", false], [null, "--write-auto-subs", false], [null, "--write-automatic-subs", false], [null, "--no-write-auto-subs", false], [null, "--no-write-automatic-subs", false], [null, "--all-subs", false], [null, "--list-subs", false], [null, "--sub-format", true], [null, "--sub-langs", true], [null, "--srt-langs", true], ["u", "--username", true], ["p", "--password", true], ["2", "--twofactor", true], ["n", "--netrc", false], [null, "--netrc-location", true], [null, "--netrc-cmd", true], [null, "--video-password", true], [null, "--ap-mso", true], [null, "--ap-username", true], [null, "--ap-password", true], [null, "--ap-list-mso", false], [null, "--client-certificate", true], [null, "--client-certificate-key", true], [null, "--client-certificate-password", true], ["x", "--extract-audio", false], [null, "--audio-format", true], [null, "--audio-quality", true], [null, "--remux-video", true], [null, "--recode-video", true], [null, "--postprocessor-args", true], [null, "--ppa", true], ["k", "--keep-video", false], [null, "--no-keep-video", false], [null, "--post-overwrites", false], [null, "--no-post-overwrites", false], [null, "--embed-subs", false], [null, "--no-embed-subs", false], [null, "--embed-thumbnail", false], [null, "--no-embed-thumbnail", false], [null, "--embed-metadata", false], [null, "--add-metadata", false], [null, "--no-embed-metadata", false], [null, "--no-add-metadata", false], [null, "--embed-chapters", false], [null, "--add-chapters", false], [null, "--no-embed-chapters", false], [null, "--no-add-chapters", false], [null, "--embed-info-json", false], [null, "--no-embed-info-json", false], [null, "--metadata-from-title", true], [null, "--parse-metadata", true], [null, "--replace-in-metadata", true], [null, "--xattrs", false], [null, "--xattr", false], [null, "--concat-playlist", true], [null, "--fixup", true], [null, "--ffmpeg-location", true], [null, "--exec", true], [null, "--no-exec", false], [null, "--exec-before-download", true], [null, "--no-exec-before-download", false], [null, "--convert-subs", true], [null, "--convert-sub", true], [null, "--convert-subtitles", true], [null, "--convert-thumbnails", true], [null, "--split-chapters", false], [null, "--split-tracks", false], [null, "--no-split-chapters", false], [null, "--no-split-tracks", false], [null, "--remove-chapters", true], [null, "--no-remove-chapters", false], [null, "--force-keyframes-at-cuts", false], [null, "--no-force-keyframes-at-cuts", false], [null, "--use-postprocessor", true], [null, "--sponsorblock-mark", true], [null, "--sponsorblock-remove", true], [null, "--sponsorblock-chapter-title", true], [null, "--no-sponsorblock", false], [null, "--sponsorblock-api", true], [null, "--extractor-retries", true], [null, "--allow-dynamic-mpd", false], [null, "--no-ignore-dynamic-mpd", false], [null, "--ignore-dynamic-mpd", false], [null, "--no-allow-dynamic-mpd", false], [null, "--hls-split-discontinuity", false], [null, "--no-hls-split-discontinuity", false], [null, "--extractor-args", true], ];