Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore: remove old rtmpdump/subprocess CLI args#3349

Merged
back-to merged 1 commit into
streamlink:masterfrom
bastimeyer:compat-removal/session-options
Nov 19, 2020
Merged

chore: remove old rtmpdump/subprocess CLI args#3349
back-to merged 1 commit into
streamlink:masterfrom
bastimeyer:compat-removal/session-options

Conversation

@bastimeyer

@bastimeyer bastimeyer commented Nov 19, 2020

Copy link
Copy Markdown
Member

and remove compat key name translations in the Session options.

Removes the following CLI arguments:

  • --rtmpdump-proxy (use --rtmp-proxy instead)
  • -c / --cmdline (use --subprocess-cmdline instead)
  • -e / --errorlog (use --subprocess-errorlog instead)
  • --errorlog-path (use --subprocess-errorlog-path instead)

Keeps --rtmpdump as a fallback for --rtmp-rtmpdump, as the default
streamlinkrc config file of the Windows installer is still using the
old parameter name.


#3235 (comment)

@bastimeyer bastimeyer mentioned this pull request Nov 19, 2020
25 tasks
@back-to

back-to commented Nov 19, 2020

Copy link
Copy Markdown
Collaborator

--rtmpdump is used in streamlinkrc

https://github.com/streamlink/streamlink/blob/1.7.0/win32/streamlinkrc#L48-L51

would be bad removing this

@bastimeyer

Copy link
Copy Markdown
Member Author

Would it make sense adding a suppressed argparse argument for this and dealing with this in streamlink_cli.main.setup_options, so that the --rtmpdump argument doesn't appear in the docs?

Btw, the entire streamlinkrc file desperately needs an overhaul.

@back-to

back-to commented Nov 19, 2020

Copy link
Copy Markdown
Collaborator

Would it make sense adding a suppressed argparse argument

might be the best solution, the command itself doesn't even need to work as --rtmp-rtmpdump

as long as we don't need to deal with streamlink: error: unrecognized arguments: --rtmpdump

and remove compat key name translations in the Session options.

Removes the following CLI arguments:
- `--rtmpdump-proxy` (use `--rtmp-proxy` instead)
- `-c` / `--cmdline` (use `--subprocess-cmdline` instead)
- `-e` / `--errorlog` (use `--subprocess-errorlog` instead)
- `--erorlog-path` (use `--subprocess-errorlog-path` instead)

Keeps `--rtmpdump` as a fallback for `--rtmp-rtmpdump`, as the default
streamlinkrc config file of the Windows installer is still using the
old parameter name.
@bastimeyer bastimeyer force-pushed the compat-removal/session-options branch from 3be1a84 to 2c33a88 Compare November 19, 2020 18:01
@back-to back-to merged commit bd86ab7 into streamlink:master Nov 19, 2020
@bastimeyer bastimeyer deleted the compat-removal/session-options branch January 19, 2021 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants