_streamlink 37.1 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822
#compdef streamlink

# AUTOMATICALLY GENERATED by `shtab`


_shtab_streamlink_cli_commands() {
  local _commands=(
    
  )
  _describe 'streamlink commands' _commands
}

_shtab_streamlink_cli_options=(
  {-h,--help}"[
            Show this help message and exit.
        ]"
  "(- : *)"{-V,--version}"[
            Show version string and exit.
        ]"
  "--version-check[
            Run a version check and exit.
        ]"
  "--auto-version-check[
            Enable or disable the automatic check for a new version of Streamlink.

            Default is \"no\".
        ]:auto_version_check:"
  "--plugins[
            Print a list of all currently installed plugins.
        ]"
  "*--plugin-dir[
            Load plugins from this directory.

            Can be set multiple times to load plugins from multiple directories.
        ]:plugin_dirs:"
  "*--plugin-dirs[
            Load plugins from a list of comma-separated directories. (deprecated)
        ]:plugin_dirs:"
  "--can-handle-url[
            Check if Streamlink has a plugin that can handle the specified URL.

            Status code is \`0\` on success, \`1\` on failure.

            Useful for external scripting.
        ]:can_handle_url:"
  "--can-handle-url-no-redirect[
            Same as --can-handle-url, but without following redirects when looking up the URL.
        ]:can_handle_url_no_redirect:"
  "*--config[
            Load options from this config file.

            Can be repeated to load multiple files, in which case the options are
            merged on top of each other where the last config has highest priority.
        ]:config:"
  "--no-config[
            Disable loading any default or custom config files.
        ]"
  "--locale[
            Override the system\'s locale setting, for selecting the preferred subtitle and audio language.

            The locale is formatted as \`\[language_code\]_\[country_code\]\`, e.g. \`en_US\` or \`es_ES\`.

            Default is system locale.
        ]:locale:"
  {-l,--loglevel}"[
            Set the log message threshold.

            Valid levels are, in order of increasing verbosity\:

            \`none\`, \`critical\`, \`error\`, \`warning\`, \`info\`, \`debug\`, \`trace\`, \`all\`

            Default is \"info\".
        ]:loglevel:(none critical error warning info debug trace all)"
  "--logformat[
            Set a custom logging format.

            See the Python standard library\'s \`logging.Formatter\` docs for more information about the logging format
            and the available \`LogRecord\` attributes. Streamlink\'s formatter uses the curly brace style.

            The default format depends on the chosen log level (may include the \`asctime\` attribute).

            Default is \"\[\{name\}\]\[\{levelname\}\] \{message\}\".
        ]:logformat:"
  "--logdateformat[
            Set a custom logging date format.

            This formats the \`LogRecord\`\'s \`asctime\` attribute via \`strftime()\`.

            The default date format depends on the chosen log level (may include fractions).

            Default is \"\%H\:\%M\:\%S\".
        ]:logdateformat:"
  "--logfile[
            Append log output to \`FILE\` instead of writing to stdout\/stderr.

            User prompts and download progress won\'t be written to \`FILE\`.

            A value of \`-\` (dash) will set the file name to an ISO8601-like string
            and will choose the following default log directories.

            Windows\:

              \%TEMP\%\\streamlink\\logs

            macOS\:

              \$\{HOME\}\/Library\/Logs\/streamlink

            Linux\/BSD\:

              \$\{XDG_STATE_HOME\:-\$\{HOME\}\/.local\/state\}\/streamlink\/logs
        ]:logfile:"
  {-Q,--quiet}"[
            Hide all log output.

            Alias for --loglevel\=none.
        ]"
  {-j,--json}"[
            Output JSON representations instead of the normal text output.

            Useful for external scripting.
        ]"
  "--interface[
            Set the network interface.
        ]:interface:"
  {-4,--ipv4}"[
            Resolve address names to IPv4 only. This option overrides --ipv6.
        ]"
  {-6,--ipv6}"[
            Resolve address names to IPv6 only. This option overrides --ipv4.
        ]"
  {-p,--player}"[
            Set the player executable that will be launched (unless a different output method was chosen).

            Either set an absolute or relative path to the player executable, or just set the executable\'s name
            if it can be resolved from the paths of the system\'s \`PATH\` environment variable.

            In addition to setting the player executable path, custom player arguments can be set via --player-args.

            Note\: In the past, --player allowed defining additional player arguments, which as a consequence required wrapping
            player paths that contained spaces in quotation marks. This is unsupported since release \`6.0.0\`.

            Default is VLC player, if available.
        ]:player:"
  {-a,--player-args}"[
            Set a string of custom --player launch arguments that will be parsed and tokenized.

            The value can contain formatting variables surrounded by curly braces, \`\{\` and \`\}\`.
            Curly brace characters can be escaped by doubling, e.g. \`\{\{\` and \`\}\}\`.

            Available formatting variables\:

            \`\{playerinput\}\`
                This is the input argument that the --player will receive. For standard input (stdin),
                it is \`-\` (dash), but it can also be a file path or URL, depending on the options used.
                If unset, then the player input argument will be appended to the parsed player arguments list.

            \`\{playertitleargs\}\`
                The automatically generated player title arguments, if a supported --player was found. See --title for more.
                If unset, automatically generated player title arguments will be prepended to the parsed player arguments list.

            Example\:

              streamlink -p vlc -a \"--play-and-exit --no-one-instance\" \<url\> \[stream\]

            Default is \"\".
        ]:player_args:"
  "*--player-env[
            Add an additional environment variable to the spawned --player process, in addition to the ones inherited from
            the Streamlink\/Python parent process. This allows setting player environment variables in config files.

            Can be repeated to add multiple environment variables.
        ]:player_env:"
  {-v,--player-verbose}"[
            Write the --player\'s stdout\/stderr output to Streamlink\'s stdout\/stderr output.
        ]"
  "--verbose-player[
            Deprecated in favor of --player-verbose.
        ]"
  {-n,--player-fifo}"[
            Make the --player read the stream through a named pipe instead of the stdin pipe.
        ]"
  "--fifo[
            Deprecated in favor of --player-fifo.
        ]"
  "--player-http[
            Make the --player read the stream through HTTP instead of the stdin pipe.
        ]"
  "--player-continuous-http[
            Make the --player read the stream through HTTP, but unlike --player-http,
            it will continuously try to open the stream if the player requests it.

            This enables the handling of stream disconnects if the player is
            capable of reconnecting to a HTTP stream. This is usually done by
            setting the player to a \"repeat mode\".
        ]"
  "--player-external-http[
            Serve stream data through HTTP without opening the --player. This is
            useful to allow external devices like smartphones or streaming boxes to
            watch streams they wouldn\'t be able to otherwise.

            The default behavior is similar to the --player-continuous-http option,
            but no player program will be started, and the server will listen on all available
            connections instead of just in the local (loopback) interface.

            See --player-external-http-interface for choosing a specific network interface, and
            see --player-external-http-port for choosing a non-randomized port.

            Optionally, the --player-external-http-continuous option allows for disabling
            the continuous run-mode, so that Streamlink will stop when the stream ends.

            The URLs that can be used to access the stream will be printed to the
            console, and the server can be interrupted using CTRL-C.
        ]"
  "--player-external-http-continuous[
            Set the run-mode of --player-external-http to continuous or non-continuous.

            In the continuous run-mode, Streamlink will keep running after the stream has ended
            and will wait for the next HTTP request being made unless it gets shut down via CTRL-C.

            If set to non-continuous, Streamlink will stop once the stream has ended.

            Default is true.
        ]:player_external_http_continuous:"
  "--player-external-http-interface[
            Set the network interface on which the HTTP server will be listening on.
            If unset or set to \`0.0.0.0\`, all available interfaces will be bound.
        ]:player_external_http_interface:"
  "--player-external-http-port[
            Set the port of the external HTTP server if that mode is enabled.
            Omit or set to \`0\` to use a random high ( \>1024) port.
        ]:player_external_http_port:"
  "--player-passthrough[
            A comma-delimited list of stream types to pass to the --player as a URL to
            let it handle the transport of the stream instead of Streamlink.

            Stream types that can be converted into a playable URL are\:

            hls, http

            Make sure the player can handle the stream type when using this.
        ]:player_passthrough:"
  "--player-no-close[
            By default, Streamlink will close the --player when the stream ends.
            This is to avoid \"dead\" GUI players lingering after Streamlink has exited.

            It does however have the side-effect of sometimes closing a
            player before it has played back all of its cached data.

            This option will instead let the player decide when to exit.
        ]"
  {-t,--title}"[
            Change the title of the --player\'s window.

            Please see the \"Metadata variables\" section of Streamlink\'s CLI documentation for all available metadata variables,
            as well as the \"Plugins\" section for the list of metadata variables defined in each plugin.

            Only the following players are supported\:

            mpv, potplayer, vlc

            Example\:

                streamlink -p mpv --title \"\{author\} - \{category\} - \{title\}\" \<URL\> \[STREAM\]
        ]:title:"
  {-O,--stdout}"[
            Write stream data to \`stdout\` instead of playing it in the --player.
        ]"
  {-o,--output}"[
            Write stream data to \`FILENAME\` instead of playing it in the --player.
            If \`FILENAME\` is set to \`-\` (dash), then the stream data will be written to \`stdout\`,
            similar to the --stdout argument.

            Directories and subdirectories will be created if they do not exist, if filesystem permissions allow.

            Unless --force is set, Streamlink will ask for confirmation before writing if \`FILENAME\` already exists.

            Please see the \"Metadata variables\" section of Streamlink\'s CLI documentation for all available metadata variables,
            as well as the \"Plugins\" section for the list of metadata variables defined in each plugin.

            Unsupported characters in substituted variables will be replaced with an underscore.

            Example\:

                streamlink --output \"\~\/recordings\/\{author\}\/\{category\}\/\{id\}-\{time\:\%Y\%m\%d\%H\%M\%S\}.ts\" \<URL\> \[STREAM\]
        ]:output:"
  {-r,--record}"[
            Write stream data to \`FILENAME\` while at the same time allowing playback in the --player or writing it to --stdout.
            If \`FILENAME\` is set to \`-\` (dash), then the stream data will be written to \`stdout\`,
            similar to the --stdout argument, while still opening the player.

            Directories and subdirectories will be created if they do not exist, if filesystem permissions allow.

            Unless --force is set, Streamlink will ask for confirmation before writing if \`FILENAME\` already exists.

            Please see the \"Metadata variables\" section of Streamlink\'s CLI documentation for all available metadata variables,
            as well as the \"Plugins\" section for the list of metadata variables defined in each plugin.

            Unsupported characters in substituted variables will be replaced with an underscore.

            Example\:

                streamlink --record \"\~\/recordings\/\{author\}\/\{category\}\/\{id\}-\{time\:\%Y\%m\%d\%H\%M\%S\}.ts\" \<URL\> \[STREAM\]
        ]:record:"
  {-R,--record-and-pipe}"[
            Deprecated in favor of --stdout --record\=FILENAME.
        ]:record_and_pipe:"
  "--fs-safe-rules[
            The rules used to make formatting variables filesystem-safe are chosen
            automatically according to the type of system in use. This overrides
            the automatic detection.

            Intended for use when Streamlink is running on a UNIX-like OS but writing
            to Windows filesystems such as NTFS\; USB devices using VFAT or exFAT\; CIFS
            shares that are enforcing Windows filename limitations, etc.

            These characters are replaced with an underscore for the rules in use\:

            - POSIX\: \`\\x00-\\x1F \/\`
            - Windows\: \`\\x00-\\x1F \\x7F \" \* \/ \: \< \> \? \\ \|\`
        ]:fs_safe_rules:(POSIX Windows)"
  {-f,--force}"[
            When using --output or --record, always write to file even if it already exists (overwrite).
        ]"
  "--progress[
            When using --output or --record, show or hide the download progress bar, or force it if there\'s no terminal.

            Default is yes.
        ]:progress:(yes force no)"
  "--url[
            A URL to attempt to extract streams from.

            Usually, the protocol of http(s) URLs can be omitted (\`https\:\/\/\`),
            depending on the implementation of the plugin being used.

            This is an alternative to setting the URL using a positional argument and can be useful if set in a config file.
        ]:url_param:"
  "--default-stream[
            Stream to play.

            Use \`best\` or \`worst\` for selecting the highest or lowest available quality.

            Fallback streams can be specified by using a comma-separated list\:

              \"720p,480p,best\"

            This is an alternative to setting the stream using a positional argument and can be useful if set in a config file.
        ]:default_stream:"
  "--stream-url[
            If possible, translate the resolved stream to a URL and print it.
        ]"
  "--retry-streams[
            Retry fetching the list of available streams until streams are found
            while waiting \`DELAY\` second(s) between each attempt. If unset, only one
            attempt will be made to fetch the list of streams available.

            The number of fetch retry attempts can be capped with --retry-max.
        ]:retry_streams:"
  "--retry-max[
            When using --retry-streams, stop retrying the fetch after \`COUNT\` retry
            attempt(s). Fetch will retry infinitely if \`COUNT\` is zero or unset.

            If --retry-max is set without setting --retry-streams, the delay between retries will default to 1 second.
        ]:retry_max:"
  "--retry-open[
            After a successful fetch, try \`ATTEMPTS\` time(s) to open the stream until giving up.

            Default is 1.
        ]:retry_open:"
  {--stream-types,--stream-priority}"[
            A comma-delimited list of stream types to allow.

            The order will be used to separate streams when there are multiple
            streams with the same name but different stream types. Any stream type
            not listed will be omitted from the available streams list.  An \`\*\` (asterisk) can
            be used as a wildcard to match any other type of stream, e.g. dash.

            Default is \"hls,http,\*\".
        ]:stream_types:"
  "--stream-sorting-excludes[
            Fine-tune the \`best\` and \`worst\` stream name synonyms by excluding unwanted streams.

            If all of the available streams get excluded, \`best\` and \`worst\` will become
            inaccessible and new special stream synonyms \`best-unfiltered\` and \`worst-unfiltered\`
            can be used as a fallback selection method.

            The filter-expression\'s format is\:

              \[operator\]\<value\>

            Valid operators are \`\>\`, \`\>\=\`, \`\<\` and \`\<\=\`. If no operator is specified then
            equality is tested.

            For example this will exclude streams ranked higher than \"480p\"\:

              --stream-sorting-excludes \"\>480p\"

            Multiple filters can be used by separating each expression with a comma.

            For example this will exclude streams from two quality types\:

              --stream-sorting-excludes \"\>480p,\>medium\"

        ]:stream_sorting_excludes:"
  "--ringbuffer-size[
            The maximum size of the ringbuffer.

            Mebibytes or kibibytes (base 2) can be specified via the M or K suffix respectively.

            The ringbuffer is used as a temporary storage between the stream and the player.
            This allows Streamlink to download the stream faster than the player which reads the data from the ringbuffer.

            The smaller the size of the ringbuffer, the higher the chance of the player buffering if the download speed
            decreases, and the higher the size, the more data can be use as a storage to recover from volatile download speeds.

            Most players have their own additional cache and will read the ringbuffer\'s content as soon as data is available.
            If the player stops reading data while playback is paused, Streamlink will continue to download the stream in the
            background as long as the ringbuffer doesn\'t get full.

            Default is \"16M\".
        ]:ringbuffer_size:"
  "--stream-segment-attempts[
            The number of download attempts of each stream segment before giving up.

            This applies to all different kinds of segmented stream types, such as DASH, HLS, etc.

            Default is 3.
        ]:stream_segment_attempts:"
  "--stream-segment-threads[
            The size of the thread pool used to download segments. Minimum value is \`1\` and maximum is \`10\`.

            This applies to all different kinds of segmented stream types, such as DASH, HLS, etc.

            Default is 1.
        ]:stream_segment_threads:"
  "--stream-segment-timeout[
            The maximum time to wait for each segment to start downloading.

            This applies to all different kinds of segmented stream types, such as DASH, HLS, etc.

            Default is 10.0.
        ]:stream_segment_timeout:"
  "--stream-timeout[
            The maximum time to wait for an unfiltered stream to continue outputting data.

            This applies to all different kinds of stream types, such as DASH, HLS, HTTP, etc.

            Default is 60.0.
        ]:stream_timeout:"
  "--mux-subtitles[
            Automatically mux available subtitles into the output stream.

            Needs to be supported by the used plugin.
        ]"
  "--hls-live-edge[
            Number of segments from the live stream\'s current live position to begin streaming.
            The size or length of each segment is determined by the streaming provider.

            Lower values will decrease the latency, but will also increase the chance of buffering, as there is less time for
            Streamlink to download segments and write their data to the output buffer. The number of parallel segment downloads
            can be set with --stream-segment-threads and the HLS playlist reload time to fetch and queue new segments can be
            overridden with --hls-playlist-reload-time.

            Default is 3.

            Note\: During live playback, the caching\/buffering settings of the used player will add additional latency.
            To adjust this, please refer to the player\'s own documentation for the required configuration.
            Player parameters can be set via --player-args.
        ]:hls_live_edge:"
  "--hls-segment-stream-data[
            Immediately write segment data into output buffer while downloading.
        ]"
  "--hls-playlist-reload-attempts[
            The maximum number of attempts when reloading the HLS playlist before giving up.

            Default is 3.
        ]:hls_playlist_reload_attempts:"
  "--hls-playlist-reload-time[
            Set a custom HLS playlist reload time value, either in seconds or by using one of the following keywords\:

            - segment\: The duration of the last segment in the current playlist
            - live-edge\: The sum of segment durations of the live edge value minus one
            - default\: The playlist\'s target duration metadata

            Default is default.
        ]:hls_playlist_reload_time:"
  "--hls-segment-queue-threshold[
            The multiplication factor of the HLS playlist\'s target duration after which the stream will be stopped early
            if no new segments were queued after refreshing the playlist (multiple times). The target duration defines the
            maximum duration a single segment can have, meaning new segments must be available during this time frame,
            otherwise playback issues can occur.

            The intention of this queue threshold is to be able to stop early when the end of a stream doesn\'t get
            announced by the server, so Streamlink doesn\'t have to wait until a read-timeout occurs. See --stream-timeout.

            Set to \`\`0\`\` to disable.

            Default is 3.
        ]:hls_segment_queue_threshold:"
  "--hls-segment-ignore-names[
            A comma-delimited list of segment names that will get filtered out.

            Example\: --hls-segment-ignore-names 000,001,002

            This will ignore every segment that ends with 000.ts, 001.ts and 002.ts

            Default is None.
        ]:hls_segment_ignore_names:"
  "--hls-segment-key-uri[
            Override the segment encryption key URIs for encrypted streams.

            The value can be templated using the following variables, which will be
            replaced with their respective part from the source segment URI\:

              \{url\} \{scheme\} \{netloc\} \{path\} \{query\}

            Examples\:

              --hls-segment-key-uri \"https\:\/\/example.com\/hls\/encryption_key\"
              --hls-segment-key-uri \"\{scheme\}\:\/\/1.2.3.4\{path\}\{query\}\"
              --hls-segment-key-uri \"\{scheme\}\:\/\/\{netloc\}\/custom\/path\/to\/key\"

            Default is None.
        ]:hls_segment_key_uri:"
  "--hls-audio-select[
            Select one or more specific audio sources by language code or name.
            Can be set to \`\*\` (asterisk) to include all audio sources.

            Examples\:

              --hls-audio-select \"English,German\"
              --hls-audio-select \"en,de\"
              --hls-audio-select \"\*\"

            Note\: This is only useful in special circumstances where the regular
            locale option fails, such as when multiple sources of the same language exist.
        ]:hls_audio_select:"
  "--hls-start-offset[
            The amount of time to skip from the beginning of the stream.
            For live streams, this is a negative offset from the end of the stream (rewind).

            Default is 0.
        ]:hls_start_offset:"
  "--hls-duration[
            Limit the playback duration, useful for watching segments of a stream.
            The actual duration may be slightly longer, as it is rounded to the nearest HLS segment.

            Default is unlimited.
        ]:hls_duration:"
  "--hls-live-restart[
            Skip to the beginning of a live stream, or as far back as possible.
        ]"
  "--dash-manifest-reload-attempts[
            The maximum number of attempts when reloading the DASH manifest before giving up.

            Default is 3.
        ]:dash_manifest_reload_attempts:"
  "--ffmpeg-ffmpeg[
            Set the location of the FFmpeg executable if it can\'t be resolved
            from the paths of the system\'s \`PATH\` environment variable.

            FFmpeg is required to access or mux separate video and audio streams,
            e.g. in DASH streams or HLS streams with multiple sources.

            Example\: --ffmpeg-ffmpeg \"\/usr\/local\/bin\/ffmpeg\"
        ]:ffmpeg_ffmpeg:"
  "--ffmpeg-no-validation[
            Disable FFmpeg validation and version logging.
        ]"
  "--ffmpeg-verbose[
            Write FFmpeg\'s stderr output to Streamlink\'s stderr output.
        ]"
  "--ffmpeg-verbose-path[
            Write FFmpeg\'s stderr output to PATH.
        ]:ffmpeg_verbose_path:"
  "--ffmpeg-loglevel[
            Change FFmpeg\'s \`-loglevel\` value to \`LOGLEVEL\`.

            Unless --ffmpeg-verbose or --ffmpeg-verbose-path is set, changing the log level won\'t have any effect.

            Default is \"info\".
        ]:ffmpeg_loglevel:"
  "--ffmpeg-fout[
            Set the output format to \`OUTFORMAT\`. This only applies to streams which require muxing.

            Default is \"matroska\".

            Example\: --ffmpeg-fout \"mpegts\"
        ]:ffmpeg_fout:"
  "--ffmpeg-video-transcode[
            Transcode the video to \`CODEC\`. This only applies to streams which require muxing.

            Default is \"copy\".

            Example\: --ffmpeg-video-transcode \"h264\"
        ]:ffmpeg_video_transcode:"
  "--ffmpeg-audio-transcode[
            Transcode the audio to \`CODEC\`. This only applies to streams which require muxing.

            Default is \"copy\".

            Example\: --ffmpeg-audio-transcode \"aac\"
        ]:ffmpeg_audio_transcode:"
  "--ffmpeg-copyts[
            Set the \`-copyts\` FFmpeg option, so input timestamps won\'t be processed
            and the initial start time offset value be kept.
        ]"
  "--ffmpeg-start-at-zero[
            Enable the \`-start_at_zero\` FFmpeg option when using --ffmpeg-copyts.
        ]"
  "--http-proxy[
            An HTTP proxy to use for all HTTP and HTTPS requests, including WebSocket connections.

            Example\: --http-proxy \"http\:\/\/hostname\:port\/\"
        ]:http_proxy:"
  "*--http-cookie[
            A cookie to add to each HTTP request.

            Can be repeated to add multiple cookies.
        ]:http_cookie:"
  "*--http-header[
            A header to add to each HTTP request.

            Can be repeated to add multiple headers.
        ]:http_header:"
  "*--http-query-param[
            A query parameter to add to each HTTP request.

            Can be repeated to add multiple query parameters.
        ]:http_query_param:"
  "--http-ignore-env[
            Ignore HTTP settings set in the environment, such as environment variables (\`HTTP_PROXY\`, etc)
            or \`\~\/.netrc\` authentication.
        ]"
  "--http-no-ssl-verify[
            Don\'t attempt to verify TLS\/SSL certificates.

            Use with caution, as it has TLS\/SSL security implications.
        ]"
  "--http-disable-dh[
            Disable Diffie Hellman key exchange.

            Use with caution, as it has TLS\/SSL security implications.
        ]"
  "--http-ssl-cert[
            SSL certificate to use\: a .pem file.
        ]:http_ssl_cert:"
  "--http-ssl-cert-crt-key[
            SSL certificate to use\: a .crt and a .key file.
        ]:http_ssl_cert_crt_key:"
  "--http-timeout[
            Set the general timeout value used by all HTTP requests except the ones covered by other options.

            Default is 20.0.
        ]:http_timeout:"
  "--webbrowser[
            Enable or disable support for Streamlink\'s webbrowser API.

            Streamlink\'s webbrowser API allows plugins which implement it to launch a web browser and extract data from websites
            which they otherwise couldn\'t do via the regular HTTP session in Python due to specific JavaScript restrictions.

            The web browser is run isolated and in a clean environment without access to regular user data.

            Streamlink currently only supports Chromium-based web browsers using the Chrome Devtools Protocol (CDP).
            This includes Chromium itself, Google Chrome, Microsoft Edge, Brave, Vivaldi, and others, but full support for
            third party Chromium forks is not guaranteed. Please try Chromium or Google Chrome when encountering any issues.

            Default is true.
        ]:webbrowser:"
  "--webbrowser-executable[
            Path to the web browser\'s executable.

            By default, it is looked up automatically according to the rules of the used webbrowser API implementation.
            This usually involves a list of known executable names and fallback paths on all supported operating systems.
        ]:webbrowser_executable:"
  "--webbrowser-timeout[
            The maximum amount of time which the web browser can take to launch and execute.
        ]:webbrowser_timeout:"
  "--webbrowser-cdp-host[
            Host for the web browser\'s inter-process communication interface (CDP specific).

            Default is 127.0.0.1.
        ]:webbrowser_cdp_host:"
  "--webbrowser-cdp-port[
            Port for the web browser\'s inter-process communication interface (CDP specific).

            Tries to find a free port by default.
        ]:webbrowser_cdp_port:"
  "--webbrowser-cdp-timeout[
            The maximum amount of time for waiting on a single CDP command response.
        ]:webbrowser_cdp_timeout:"
  "--webbrowser-headless[
            Whether to launch the web browser in headless mode or not.
            When enabled, it stays completely hidden and doesn\'t require a desktop environment to run.

            Please be aware that headless mode might be blocked by websites which implement bot detections.

            Default is false.
        ]:webbrowser_headless:"
  "--bbciplayer-username[The username used to register with bbc.co.uk.]:bbciplayer_username:"
  "--bbciplayer-password[A bbc.co.uk account password to use with --bbciplayer-username.]:bbciplayer_password:"
  "--bbciplayer-hd[Prefer HD streams over local SD streams, some live programmes may not be broadcast in HD.]"
  "--clubbingtv-username[The username used to register with Clubbing TV.]:clubbingtv_username:"
  "--clubbingtv-password[A Clubbing TV account password to use with --clubbingtv-username.]:clubbingtv_password:"
  "--niconico-email[The email or phone number associated with your Niconico account]:niconico_email:"
  "--niconico-password[The password of your Niconico account]:niconico_password:"
  "--niconico-user-session[
        Value of the user-session token.

        Can be used as an alternative to providing a password.
    ]:niconico_user_session:"
  "--niconico-purge-credentials[Purge cached Niconico credentials to initiate a new session and reauthenticate.]"
  "--niconico-timeshift-offset[
        Amount of time to skip from the beginning of a stream.

        Default is 0.
    ]:niconico_timeshift_offset:"
  "--openrectv-email[The email associated with your openrectv account, required to access any openrectv stream.]:openrectv_email:"
  "--openrectv-password[An openrectv account password to use with --openrectv-email.]:openrectv_password:"
  "--pixiv-sessionid[The pixiv.net sessionid that\'s used in pixiv\'s PHPSESSID cookie.]:pixiv_sessionid:"
  "--pixiv-devicetoken[The pixiv.net device token that\'s used in pixiv\'s device_token cookie.]:pixiv_devicetoken:"
  "--pixiv-purge-credentials[Purge cached Pixiv credentials to initiate a new session and reauthenticate.]"
  "--pixiv-performer[Select a co-host stream instead of the owner stream.]:pixiv_performer:"
  "--raiplay-email[The email used to register with raiplay.it.]:raiplay_email:"
  "--raiplay-password[A raiplay.it account password to use with --raiplay-email.]:raiplay_password:"
  "--raiplay-purge-credentials[Purge cached RaiPlay credentials to initiate a new session and reauthenticate.]"
  "--soop-username[The username used to register with sooplive.co.kr.]:soop_username:"
  "--soop-password[A sooplive.co.kr account password to use with --soop-username.]:soop_password:"
  "--soop-purge-credentials[Purge cached Soop credentials to initiate a new session and reauthenticate.]"
  "--soop-stream-password[The password for the stream.]:soop_stream_password:"
  "--steam-email[A Steam account email address to access friends\/private streams]:steam_email:"
  "--steam-password[A Steam account password to use with --steam-email.]:steam_password:"
  "--streann-url[Source URL where the iframe is located, only required for direct URLs of ott.streann.com]:streann_url:"
  "--tf1-email[The email address used to register with tf1.fr.]:tf1_email:"
  "--tf1-password[A tf1.fr account password to use with --tf1-username.]:tf1_password:"
  "--tf1-purge-credentials[Purge cached tf1.fr credentials to initiate a new session and reauthenticate.]"
  "--twitcasting-password[Password for private Twitcasting streams.]:twitcasting_password:"
  "--twitch-disable-ads[
        Skip embedded advertisement segments at the beginning or during a stream.
        Will cause these segments to be missing from the output.
    ]"
  "--twitch-low-latency[
        Enables low latency streaming by prefetching HLS segments.
        Sets --hls-segment-stream-data to true and --hls-live-edge to 2, if it is higher.
        Reducing --hls-live-edge to \`1\` will result in the lowest latency possible, but will most likely cause buffering.

        In order to achieve true low latency streaming during playback, the player\'s caching\/buffering settings will
        need to be adjusted and reduced to a value as low as possible, but still high enough to not cause any buffering.
        This depends on the stream\'s bitrate and the quality of the connection to Twitch\'s servers. Please refer to the
        player\'s own documentation for the required configuration. Player parameters can be set via --player-args.

        Note\: Low latency streams have to be enabled by the broadcasters on Twitch themselves.
        Regular streams can cause buffering issues with this option enabled due to the reduced --hls-live-edge value.
    ]"
  "*--twitch-api-header[
        A header to add to each Twitch API HTTP request.

        Can be repeated to add multiple headers.

        Useful for adding authentication data that can prevent ads. See the plugin-specific documentation for more information.
    ]:twitch_api_header:"
  "*--twitch-access-token-param[
        A parameter to add to the API request for acquiring the streaming access token.

        Can be repeated to add multiple parameters.
    ]:twitch_access_token_param:"
  "--twitch-force-client-integrity[Don\'t attempt requesting the streaming access token without a client-integrity token.]"
  "--twitch-purge-client-integrity[Purge cached Twitch client-integrity token and acquire a new one.]"
  "--ustream-password[A password to access password protected UStream.tv channels.]:ustream_password:"
  "--ustvnow-username[Your USTV Now account username]:ustvnow_username:"
  "--ustvnow-password[Your USTV Now account password]:ustvnow_password:"
  "--wwenetwork-email[The email associated with your WWE Network account, required to access any WWE Network stream.]:wwenetwork_email:"
  "--wwenetwork-password[A WWE Network account password to use with --wwenetwork-email.]:wwenetwork_password:"
  "--yupptv-boxid[The yupptv.com boxid that\'s used in the BoxId cookie.]:yupptv_boxid:"
  "--yupptv-yuppflixtoken[The yupptv.com yuppflixtoken that\'s used in the YuppflixToken cookie.]:yupptv_yuppflixtoken:"
  "--yupptv-purge-credentials[Purge cached YuppTV credentials to initiate a new session and reauthenticate.]"
  "--zattoo-email[The email associated with your zattoo account, required to access any zattoo stream.]:zattoo_email:"
  "--zattoo-password[A zattoo account password to use with --zattoo-email.]:zattoo_password:"
  "--zattoo-purge-credentials[Purge cached zattoo credentials to initiate a new session and reauthenticate.]"
  "--zattoo-stream-types[
        A comma-delimited list of stream types which should be used.

        The following types are allowed\: dash, hls7

        Default is \"dash\".
    ]:zattoo_stream_types:"
  ":A URL to attempt to extract streams from.:"
  ":Stream to play.:"
)


_shtab_streamlink_cli() {
  local context state line curcontext="$curcontext" one_or_more='(-)*' remainder='(*)'

  if ((${_shtab_streamlink_cli_options[(I)${(q)one_or_more}*]} + ${_shtab_streamlink_cli_options[(I)${(q)remainder}*]} == 0)); then  # noqa: E501
    _shtab_streamlink_cli_options+=(': :_shtab_streamlink_cli_commands' '*::: :->streamlink')
  fi
  _arguments -C -s $_shtab_streamlink_cli_options

  case $state in
    streamlink)
      words=($line[1] "${words[@]}")
      (( CURRENT += 1 ))
      curcontext="${curcontext%:*:*}:_shtab_streamlink_cli-$line[1]:"
      case $line[1] in
        
      esac
  esac
}



typeset -A opt_args

if [[ $zsh_eval_context[-1] == eval ]]; then
  # eval/source/. command, register function for later
  compdef _shtab_streamlink_cli -N streamlink
else
  # autoload from fpath, call function directly
  _shtab_streamlink_cli "$@"
fi