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

Skip to content

cli: add --no-config argument#5314

Merged
gravyboat merged 1 commit into
streamlink:masterfrom
bastimeyer:cli/no-config
Apr 27, 2023
Merged

cli: add --no-config argument#5314
gravyboat merged 1 commit into
streamlink:masterfrom
bastimeyer:cli/no-config

Conversation

@bastimeyer

Copy link
Copy Markdown
Member

This disables loading any default or custom config files. Only arguments set directly will be parsed.


Default config + plugin config

$ streamlink -l debug twitch.tv/...
...
[cli][debug] Arguments:
[cli][debug]  url=twitch.tv/...
[cli][debug]  --loglevel=debug
[cli][debug]  --player=mpv
[cli][debug]  --player-args=--cache=yes --demuxer-max-back-bytes=2G
[cli][debug]  --stream-segment-threads=2
[cli][debug]  --hls-live-edge=2
[cli][debug]  --twitch-disable-ads=True
[cli][debug]  --twitch-disable-reruns=True
[cli][debug]  --twitch-low-latency=True

Disabled default config + plugin config

$ streamlink --no-config -l debug twitch.tv/...
...
[cli][debug] Arguments:
[cli][debug]  url=twitch.tv/...
[cli][debug]  --no-config=True
[cli][debug]  --loglevel=debug

Custom configs overrides

$ streamlink -l debug --config ~/.config/streamlink/config --config ~/.config/streamlink/config.twitch youtube.com/...
...
[cli][debug] Arguments:
[cli][debug]  url=youtube.com/...
[cli][debug]  --config=['/home/basti/.config/streamlink/config', '/home/basti/.config/streamlink/config.twitch']
[cli][debug]  --loglevel=debug
[cli][debug]  --player=mpv
[cli][debug]  --player-args=--cache=yes --demuxer-max-back-bytes=2G
[cli][debug]  --stream-segment-threads=2
[cli][debug]  --hls-live-edge=2
[cli][debug]  --twitch-disable-ads=True
[cli][debug]  --twitch-disable-reruns=True
[cli][debug]  --twitch-low-latency=True

Disabled custom config overrides

$ streamlink --no-config -l debug --config ~/.config/streamlink/config --config ~/.config/streamlink/config.twitch youtube.com/...
...
[cli][debug] Arguments:
[cli][debug]  url=youtube.com/...
[cli][debug]  --config=['/home/basti/.config/streamlink/config', '/home/basti/.config/streamlink/config.twitch']
[cli][debug]  --no-config=True
[cli][debug]  --loglevel=debug

This disables loading any default or custom config files.
Only arguments set directly will be parsed.
@bastimeyer bastimeyer added the CLI label Apr 27, 2023
@gravyboat gravyboat merged commit de18f4a into streamlink:master Apr 27, 2023
@bastimeyer bastimeyer deleted the cli/no-config branch April 27, 2023 17:36
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