#compdef yt-dlp

_arguments \
         '*:file:_files' \
		{-h,--help}'[Print this help text and exit]' \
		'--version[Print program version and exit]' \
		{-U,--update}'[Update this program to the latest version]' \
		'--no-update[Do not check for updates (default)]' \
		'--update-to[Upgrade/downgrade to a specific version. CHANNEL can be a repository as well]' \
		{-i,--ignore-errors}'[Ignore download and postprocessing errors]' \
		'--no-abort-on-error[Continue with next video on download errors; e. g]' \
		'--abort-on-error[Abort downloading of further videos if an error occurs (Alias: --no-ignore-er…]' \
		'--dump-user-agent[Display the current user-agent and exit]' \
		'--list-extractors[List all supported extractors and exit]' \
		'--extractor-descriptions[Output descriptions of all supported extractors and exit]' \
		'--use-extractors[Extractor names to use separated by commas]' \
		'--default-search[Use this prefix for unqualified URLs. E. g]' \
		'--ignore-config[Don\\\[aq\]t load any more configuration files except those given to --config-lo…]' \
		'--no-config-locations[Do not load any custom configuration files (default)]' \
		'--config-locations[Location of the main configuration file; either the path to the config or its…]' \
		'--plugin-dirs[Path to an additional directory to search for plugins]' \
		'--no-plugin-dirs[Clear plugin directories to search, including defaults and those provided by …]' \
		'--flat-playlist[Do not extract a playlist\\\[aq\]s URL result entries; some entry metadata may b…]' \
		'--no-flat-playlist[Fully extract the videos of a playlist (default)]' \
		'--live-from-start[Download livestreams from the start]' \
		'--no-live-from-start[Download livestreams from the current time (default)]' \
		'--wait-for-video[Wait for scheduled streams to become available]' \
		'--no-wait-for-video[Do not wait for scheduled streams (default)]' \
		'--mark-watched[Mark videos watched (even with --simulate)]' \
		'--no-mark-watched[Do not mark videos watched (default)]' \
		'--color[Whether to emit color codes in output, optionally prefixed by the STREAM (std…]' \
		'--compat-options[Options that can help keep compatibility with youtube-dl or youtube-dlc confi…]' \
		'--alias[Create aliases for an option string]' \
		{-t,--preset-alias}'[Applies a predefined set of options. e. g. --preset-alias mp3]' \
		'--proxy[Use the specified HTTP/HTTPS/SOCKS proxy]' \
		'--socket-timeout[Time to wait before giving up, in seconds]' \
		'--source-address[Client-side IP address to bind to]' \
		'--impersonate[Client to impersonate for requests. E. g]' \
		'--list-impersonate-targets[List available clients to impersonate]' \
		{-4,--force-ipv4}'[Make all connections via IPv4]' \
		{-6,--force-ipv6}'[Make all connections via IPv6]' \
		'--enable-file-urls[Enable file:// URLs. This is disabled by default for security reasons]' \
		'--geo-verification-proxy[Use this proxy to verify the IP address for some geo-restricted sites]' \
		'--xff[How to fake X-Forwarded-For HTTP header to try bypassing geographic restricti…]' \
		{-I,--playlist-items}'[Comma separated playlist_index of the items to download]' \
		'--min-filesize[Abort download if filesize is smaller than SIZE, e. g. 50k or 44. 6M]' \
		'--max-filesize[Abort download if filesize is larger than SIZE, e. g. 50k or 44. 6M]' \
		'--date[Download only videos uploaded on this date]' \
		'--datebefore[Download only videos uploaded on or before this date]' \
		'--dateafter[Download only videos uploaded on or after this date]' \
		'--match-filters[Generic video filter]' \
		'--no-match-filters[Do not use any --match-filters (default)]' \
		'--break-match-filters[Same as \\\[dq\]--match-filters\\\[dq\] but stops the download process when a video…]' \
		'--no-break-match-filters[Do not use any --break-match-filters (default)]' \
		'--no-playlist[Download only the video, if the URL refers to a video and a playlist]' \
		'--yes-playlist[Download the playlist, if the URL refers to a video and a playlist]' \
		'--age-limit[Download only videos suitable for the given age]' \
		'--download-archive[Download only videos not listed in the archive file]' \
		'--no-download-archive[Do not use archive file (default)]' \
		'--max-downloads[Abort after downloading NUMBER files]' \
		'--break-on-existing[Stop the download process when encountering a file that is in the archive sup…]' \
		'--no-break-on-existing[Do not stop the download process when encountering a file that is in the arch…]' \
		'--break-per-input[Alters --max-downloads, --break-on-existing, --break-match-filters, and auton…]' \
		'--no-break-per-input[--break-on-existing and similar options terminates the entire download queue]' \
		'--skip-playlist-after-errors[Number of allowed failures until the rest of the playlist is skipped]' \
		{-N,--concurrent-fragments}'[Number of fragments of a dash/hlsnative video that should be downloaded concu…]' \
		{-r,--limit-rate}'[Maximum download rate in bytes per second, e. g. 50K or 4. 2M]' \
		'--throttled-rate[Minimum download rate in bytes per second below which throttling is assumed a…]' \
		{-R,--retries}'[Number of retries (default is 10), or \\\[dq\]infinite\\\[dq\]]' \
		'--file-access-retries[Number of times to retry on file access error (default is 3), or \\\[dq\]infinit…]' \
		'--fragment-retries[Number of retries for a fragment (default is 10), or \\\[dq\]infinite\\\[dq\] (DASH…]' \
		'--retry-sleep[Time to sleep between retries in seconds (optionally) prefixed by the type of…]' \
		'--skip-unavailable-fragments[Skip unavailable fragments for DASH, hlsnative and ISM downloads (default) (A…]' \
		'--abort-on-unavailable-fragments[Abort download if a fragment is unavailable (Alias: --no-skip-unavailable-fra…]' \
		'--keep-fragments[Keep downloaded fragments on disk after downloading is finished]' \
		'--no-keep-fragments[Delete downloaded fragments after downloading is finished (default)]' \
		'--buffer-size[Size of download buffer, e. g. 1024 or 16K (default is 1024)]' \
		'--resize-buffer[The buffer size is automatically resized from an initial value of --buffer-si…]' \
		'--no-resize-buffer[Do not automatically adjust the buffer size]' \
		'--http-chunk-size[Size of a chunk for chunk-based HTTP downloading, e. g]' \
		'--playlist-random[Download playlist videos in random order]' \
		'--lazy-playlist[Process entries in the playlist as they are received]' \
		'--no-lazy-playlist[Process videos in the playlist only after the entire playlist is parsed (defa…]' \
		'--xattr-set-filesize[Set file xattribute ytdl. filesize with expected file size]' \
		'--hls-use-mpegts[Use the mpegts container for HLS videos; allowing some players to play the vi…]' \
		'--no-hls-use-mpegts[Do not use the mpegts container for HLS videos]' \
		'--download-sections[Download only chapters that match the regular expression]' \
		'--downloader[Name or path of the external downloader to use (optionally) prefixed by the p…]' \
		'--downloader-args[Give these arguments to the external downloader]' \
		{-a,--batch-file}'[File containing URLs to download (\\\[dq\]-\\\[dq\] for stdin), one URL per line]' \
		'--no-batch-file[Do not read URLs from batch file (default)]' \
		{-P,--paths}'[The paths where the files should be downloaded]' \
		{-o,--output}'[Output filename template; see \\\[dq\]OUTPUT TEMPLATE\\\[dq\] for details]' \
		'--output-na-placeholder[Placeholder for unavailable fields in --output (default: \\\[dq\]NA\\\[dq\])]' \
		'--restrict-filenames[Restrict filenames to only ASCII characters, and avoid \\\[dq\]&\\\[dq\] and spaces…]' \
		'--no-restrict-filenames[Allow Unicode characters, \\\[dq\]&\\\[dq\] and spaces in filenames (default)]' \
		'--windows-filenames[Force filenames to be Windows-compatible]' \
		'--no-windows-filenames[Sanitize filenames only minimally]' \
		'--trim-filenames[Limit the filename length (excluding extension) to the specified number of ch…]' \
		{-w,--no-overwrites}'[Do not overwrite any files]' \
		'--force-overwrites[Overwrite all video and metadata files. This option includes --no-continue]' \
		'--no-force-overwrites[Do not overwrite the video, but overwrite related files (default)]' \
		{-c,--continue}'[Resume partially downloaded files/fragments (default)]' \
		'--no-continue[Do not resume partially downloaded fragments]' \
		'--part[Use . part files instead of writing directly into output file (default)]' \
		'--no-part[Do not use . part files - write directly into output file]' \
		'--mtime[Use the Last-modified header to set the file modification time (default)]' \
		'--no-mtime[Do not use the Last-modified header to set the file modification time]' \
		'--write-description[Write video description to a . description file]' \
		'--no-write-description[Do not write video description (default)]' \
		'--write-info-json[Write video metadata to a . info]' \
		'--no-write-info-json[Do not write video metadata (default)]' \
		'--write-playlist-metafiles[Write playlist metadata in addition to the video metadata when using --write-…]' \
		'--no-write-playlist-metafiles[Do not write playlist metadata when using --write-info-json, --write-descript…]' \
		'--clean-info-json[Remove some internal metadata such as filenames from the infojson (default)]' \
		'--no-clean-info-json[Write all fields to the infojson]' \
		'--write-comments[Retrieve video comments to be placed in the infojson]' \
		'--no-write-comments[Do not retrieve video comments unless the extraction is known to be quick (Al…]' \
		'--load-info-json[JSON file containing the video information (created with the \\\[dq\]--write-inf…]' \
		'--cookies[Netscape formatted file to read cookies from and dump cookie jar in]' \
		'--no-cookies[Do not read/dump cookies from/to file (default)]' \
		'--cookies-from-browser[The name of the browser to load cookies from]' \
		'--no-cookies-from-browser[Do not load cookies from browser (default)]' \
		'--cache-dir[Location in the filesystem where yt-dlp can store some downloaded information…]' \
		'--no-cache-dir[Disable filesystem caching]' \
		'--rm-cache-dir[Delete all filesystem cache files . SS Thumbnail Options:]' \
		'--write-thumbnail[Write thumbnail image to disk]' \
		'--no-write-thumbnail[Do not write thumbnail image to disk (default)]' \
		'--write-all-thumbnails[Write all thumbnail image formats to disk]' \
		'--list-thumbnails[List available thumbnails of each video]' \
		'--write-link[Write an internet shortcut file, depending on the current platform (. url,]' \
		'--write-url-link[Write a . url Windows internet shortcut]' \
		'--write-webloc-link[Write a . webloc macOS internet shortcut]' \
		'--write-desktop-link[Write a . desktop Linux internet shortcut]' \
		{-q,--quiet}'[Activate quiet mode. If used with --verbose, print the log to stderr]' \
		'--no-quiet[Deactivate quiet mode. (Default)]' \
		'--no-warnings[Ignore warnings]' \
		{-s,--simulate}'[Do not download the video and do not write anything to disk]' \
		'--no-simulate[Download the video even if printing/listing options are used]' \
		'--ignore-no-formats-error[Ignore \\\[dq\]No video formats\\\[dq\] error]' \
		'--no-ignore-no-formats-error[Throw error when no downloadable video formats are found (default)]' \
		'--skip-download[Do not download the video but write all related files (Alias: --no-download)]' \
		{-O,--print}'[Field name or output template to print to screen, optionally prefixed with wh…]' \
		'--print-to-file[Append given template to the file]' \
		{-j,--dump-json}'[Quiet, but print JSON information for each video]' \
		{-J,--dump-single-json}'[Quiet, but print JSON information for each URL or infojson passed]' \
		'--force-write-archive[Force download archive entries to be written as far as no errors occur, even …]' \
		'--newline[Output progress bar as new lines]' \
		'--no-progress[Do not print progress bar]' \
		'--progress[Show progress bar, even if in quiet mode]' \
		'--console-title[Display progress in console titlebar]' \
		'--progress-template[Template for progress outputs, optionally prefixed with one of \\\[dq\]download:…]' \
		'--progress-delta[Time between progress output (default: 0)]' \
		{-v,--verbose}'[Print various debugging information]' \
		'--dump-pages[Print downloaded pages encoded using base64 to debug problems (very verbose)]' \
		'--write-pages[Write downloaded intermediary pages to files in the current directory to debu…]' \
		'--print-traffic[Display sent and read HTTP traffic . SS Workarounds:]' \
		'--encoding[Force the specified encoding (experimental)]' \
		'--legacy-server-connect[Explicitly allow HTTPS connection to servers that do not support RFC 5746 sec…]' \
		'--no-check-certificates[Suppress HTTPS certificate validation]' \
		'--prefer-insecure[Use an unencrypted connection to retrieve information about the video (Curren…]' \
		'--add-headers[Specify a custom HTTP header and its value, separated by a colon \\\[dq\]:\\\[dq\]]' \
		'--bidi-workaround[Work around terminals that lack bidirectional text support]' \
		'--sleep-requests[Number of seconds to sleep between requests during data extraction]' \
		'--sleep-interval[Number of seconds to sleep before each download]' \
		'--max-sleep-interval[Maximum number of seconds to sleep]' \
		'--sleep-subtitles[Number of seconds to sleep before each subtitle download]' \
		{-f,--format}'[Video format code, see \\\[dq\]FORMAT SELECTION\\\[dq\] for more details]' \
		{-S,--format-sort}'[Sort the formats by the fields given, see \\\[dq\]Sorting Formats\\\[dq\] for more …]' \
		'--format-sort-force[Force user specified sort order to have precedence over all fields, see \\\[dq\]…]' \
		'--no-format-sort-force[Some fields have precedence over the user specified sort order (default)]' \
		'--video-multistreams[Allow multiple video streams to be merged into a single file]' \
		'--no-video-multistreams[Only one video stream is downloaded for each output file (default)]' \
		'--audio-multistreams[Allow multiple audio streams to be merged into a single file]' \
		'--no-audio-multistreams[Only one audio stream is downloaded for each output file (default)]' \
		'--prefer-free-formats[Prefer video formats with free containers over non-free ones of the same qual…]' \
		'--no-prefer-free-formats[Don\\\[aq\]t give any special preference to free containers (default)]' \
		'--check-formats[Make sure formats are selected only from those that are actually downloadable]' \
		'--check-all-formats[Check all formats for whether they are actually downloadable]' \
		'--no-check-formats[Do not check that the formats are actually downloadable]' \
		{-F,--list-formats}'[List available formats of each video. Simulate unless --no-simulate is used]' \
		'--merge-output-format[Containers that may be used when merging formats, separated by \\\[dq\]/\\\[dq\], e]' \
		'--write-subs[Write subtitle file]' \
		'--no-write-subs[Do not write subtitle file (default)]' \
		'--write-auto-subs[Write automatically generated subtitle file (Alias: --write-automatic-subs)]' \
		'--no-write-auto-subs[Do not write auto-generated subtitles (default) (Alias: --no-write-automatic-…]' \
		'--list-subs[List available subtitles of each video]' \
		'--sub-format[Subtitle format; accepts formats preference separated by \\\[dq\]/\\\[dq\], e. g]' \
		'--sub-langs[Languages of the subtitles to download (can be regex) or \\\[dq\]all\\\[dq\] separa…]' \
		{-u,--username}'[Login with this account ID]' \
		{-p,--password}'[Account password. If this option is left out, yt-dlp will ask interactively]' \
		{-2,--twofactor}'[Two-factor authentication code]' \
		{-n,--netrc}'[Use . netrc authentication data]' \
		'--netrc-location[Location of]' \
		'--netrc-cmd[Command to execute to get the credentials for an extractor]' \
		'--video-password[Video-specific password]' \
		'--ap-mso[Adobe Pass multiple-system operator (TV provider) identifier, use --ap-list-m…]' \
		'--ap-username[Multiple-system operator account login]' \
		'--ap-password[Multiple-system operator account password]' \
		'--ap-list-mso[List all supported multiple-system operators]' \
		'--client-certificate[Path to client certificate file in PEM format. May include the private key]' \
		'--client-certificate-key[Path to private key file for client certificate]' \
		'--client-certificate-password[Password for client certificate private key, if encrypted]' \
		{-x,--extract-audio}'[Convert video files to audio-only files (requires ffmpeg and ffprobe)]' \
		'--audio-format[Format to convert the audio to when -x is used]' \
		'--audio-quality[Specify ffmpeg audio quality to use when converting the audio with -x]' \
		'--remux-video[Remux the video into another container if necessary (currently supported: avi…]' \
		'--recode-video[Re-encode the video into another format if necessary]' \
		'--postprocessor-args[Give these arguments to the postprocessors]' \
		{-k,--keep-video}'[Keep the intermediate video file on disk after post-processing]' \
		'--no-keep-video[Delete the intermediate video file after post-processing (default)]' \
		'--post-overwrites[Overwrite post-processed files (default)]' \
		'--no-post-overwrites[Do not overwrite post-processed files]' \
		'--embed-subs[Embed subtitles in the video (only for mp4, webm and mkv videos)]' \
		'--no-embed-subs[Do not embed subtitles (default)]' \
		'--embed-thumbnail[Embed thumbnail in the video as cover art]' \
		'--no-embed-thumbnail[Do not embed thumbnail (default)]' \
		'--embed-metadata[Embed metadata to the video file]' \
		'--no-embed-metadata[Do not add metadata to file (default) (Alias: --no-add-metadata)]' \
		'--embed-chapters[Add chapter markers to the video file (Alias: --add-chapters)]' \
		'--no-embed-chapters[Do not add chapter markers (default) (Alias: --no-add-chapters)]' \
		'--embed-info-json[Embed the infojson as an attachment to mkv/mka video files]' \
		'--no-embed-info-json[Do not embed the infojson as an attachment to the video file]' \
		'--parse-metadata[Parse additional metadata like title/artist from other fields; see \\\[dq\]MODIF…]' \
		'--replace-in-metadata[Replace text in a metadata field using the given regex]' \
		'--xattrs[Write metadata to the video file\\\[aq\]s xattrs (using Dublin Core and XDG stan…]' \
		'--concat-playlist[Concatenate videos in a playlist]' \
		'--fixup[Automatically correct known faults of the file]' \
		'--ffmpeg-location[Location of the ffmpeg binary; either the path to the binary or its containin…]' \
		'--exec[Execute a command, optionally prefixed with when to execute it, separated by …]' \
		'--no-exec[Remove any previously defined --exec]' \
		'--convert-subs[Convert the subtitles to another format (currently supported: ass, lrc, srt, …]' \
		'--convert-thumbnails[Convert the thumbnails to another format (currently supported: jpg, png, webp)]' \
		'--split-chapters[Split video into multiple files based on internal chapters]' \
		'--no-split-chapters[Do not split video based on chapters (default)]' \
		'--remove-chapters[Remove chapters whose title matches the given regular expression]' \
		'--no-remove-chapters[Do not remove any chapters from the file (default)]' \
		'--force-keyframes-at-cuts[Force keyframes at cuts when downloading/splitting/removing sections]' \
		'--no-force-keyframes-at-cuts[Do not force keyframes around the chapters when cutting/splitting (default)]' \
		'--use-postprocessor[The (case-sensitive) name of plugin postprocessors to be enabled, and (option…]' \
		'--sponsorblock-mark[SponsorBlock categories to create chapters for, separated by commas]' \
		'--sponsorblock-remove[SponsorBlock categories to be removed from the video file, separated by commas]' \
		'--sponsorblock-chapter-title[An output template for the title of the SponsorBlock chapters created by --sp…]' \
		'--no-sponsorblock[Disable both --sponsorblock-mark and --sponsorblock-remove]' \
		'--sponsorblock-api[SponsorBlock API location, defaults to https://sponsor. ajay. app]' \
		'--extractor-retries[Number of retries for known extractor errors (default is 3), or \\\[dq\]infinite…]' \
		'--allow-dynamic-mpd[Process dynamic DASH manifests (default) (Alias: --no-ignore-dynamic-mpd)]' \
		'--ignore-dynamic-mpd[Do not process dynamic DASH manifests (Alias: --no-allow-dynamic-mpd)]' \
		'--hls-split-discontinuity[Split HLS playlists to different formats at discontinuities such as ad breaks]' \
		'--no-hls-split-discontinuity[Do not split HLS playlists into different formats at discontinuities such as …]' \
		'--extractor-args[Pass ARGS arguments to the IE_KEY extractor]' \
		'--no-ignore-errors' \
		'--ies[Prefix the name with a \[dq\]-\[dq\] to exclude it, e. g]' \
		'-generic[Use --list-extractors for a list of extractor names. (Alias: --ies)]' \
		'-X[creates options \[dq\]--get-audio\[dq\] and \[dq\]-X\[dq\] that takes an argument (AR…]' \
		'--no-skip-unavailable-fragments' \
		'--no-download' \
		'--force-download-archive' \
		'--min-sleep-interval' \
		'--write-automatic-subs' \
		'--no-write-automatic-subs' \
		{-live_chat,--sub-}'[Use --list-subs for a list of available language tags Authentication Options:]' \
		'--ppa[You can use this option multiple times to give different arguments to differe…]' \
		'--no-embed-chapters' \
		'--add-metadata' \
		'-preview[https://wiki. sponsor. ajay. app/w/Segment_Categories]' \
		'--no-ignore-dynamic-mpd' \
		'--config-location[\[bu\] 2 If unset, ${XDG_CONFIG_HOME} defaults to \[ti\]/]' \
		'--onedir[here (https://pyinstaller. org/en/stable/usage. html#what-to-generate)]' \
		'--format' \
		'--playlist-reverse[See #302 (https://github. com/yt-dlp/yt-dlp/issues/302) for details]' \
		{-multistreams,-playlist,-manifest,-allow,-prefer}'[\[bu\] 2]' \
		{-no,-no}'[\[bu\] 2]' \
		'--get-description' \
		'--get-duration' \
		'--get-filename' \
		'--get-format' \
		'--get-id' \
		'--get-thumbnail' \
		{-e,--get-title}'' \
		{-g,--get-url}'' \
		'--match-title' \
		'--reject-title' \
		'--min-views' \
		'--max-views' \
		'--break-on-reject' \
		'--user-agent' \
		'--referer' \
		'--playlist-start' \
		'--playlist-end' \
		'-1' \
		'--no-playlist-reverse' \
		'--no-colors[Not recommended]' \
		'--force-generic-extractor' \
		'--exec-before-download' \
		'--no-exec-before-download' \
		'--all-formats' \
		'--all-subs' \
		'--print-json' \
		'--autonumber-size' \
		'--autonumber-start' \
		'--id' \
		'--metadata-from-title' \
		'--hls-prefer-native' \
		'--hls-prefer-ffmpeg' \
		{--list-formats-old,--no-list-formats-as-table}'' \
		{-list,--list-formats-as-table,--no-list-formats-old}'' \
		{--youtube-skip-dash-manifest,--no-youtube-include-dash-manifest}'' \
		{--youtube-skip-hls-manifest,--no-youtube-include-hls-manifest}'' \
		{--youtube-include-dash-manifest,--no-youtube-skip-dash-manifest}'' \
		{--youtube-include-hls-manifest,--no-youtube-skip-hls-manifest}'' \
		'--geo-bypass' \
		'--no-geo-bypass' \
		'--geo-bypass-country' \
		'--geo-bypass-ip-block[Developer options]' \
		'--test' \
		'--load-pages' \
		'--youtube-print-sig-code' \
		'--allow-unplayable-formats' \
		'--no-allow-unplayable-formats[Old aliases]' \
		'--avconv-location' \
		'--clean-infojson' \
		'--cn-verification-proxy' \
		'--dump-headers' \
		'--dump-intermediate-pages' \
		'--force-write-download-archive' \
		'--load-info' \
		'--no-clean-infojson' \
		'--no-split-tracks' \
		'--no-write-srt' \
		'--prefer-unsecure' \
		'--rate-limit' \
		'--split-tracks' \
		'--srt-lang' \
		'--trim-file-names' \
		'--write-srt' \
		'--yes-overwrites[Sponskrub Options]' \
		'--sponskrub' \
		'--no-sponskrub' \
		'--sponskrub-cut' \
		{-all,--no-sponskrub-cut}'' \
		'--sponskrub-force' \
		'--no-sponskrub-force' \
		'--sponskrub-location' \
		'--sponskrub-args[No longer supported]' \
		{--prefer-avconv,--no-prefer-ffmpeg}'' \
		{--prefer-ffmpeg,--no-prefer-avconv}'' \
		{-C,--call-home}'' \
		'--no-call-home' \
		'--include-ads' \
		'--no-include-ads' \
		'--write-annotations' \
		'--no-write-annotations' \
		{-A,--auto-number}'' \
		{-l,--title,--literal}''
