Skip to content

cli: add --no-config argument #5314

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 27, 2023
Merged

Conversation

bastimeyer
Copy link
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