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

Skip to content

cli: add --skip#6633

Merged
bastimeyer merged 1 commit into
streamlink:masterfrom
bastimeyer:cli/add-skip-arg
Aug 19, 2025
Merged

cli: add --skip#6633
bastimeyer merged 1 commit into
streamlink:masterfrom
bastimeyer:cli/add-skip-arg

Conversation

@bastimeyer

Copy link
Copy Markdown
Member

Resolves #6632

This adds --skip in addition to the already existing --force CLI argument.

With --skip set, no prompt will be made for overwriting the output file if it already exists, and Streamlink will immediately exit. --skip takes precedence over --force, if set.

$ echo 123 > /tmp/foo
$ touch /tmp/bar
$ streamlink httpstream://file:///tmp/foo best -o /tmp/bar
[cli][info] Found matching plugin http for URL httpstream://file:///tmp/foo
[cli][info] Available streams: live (worst, best)
[cli][info] Opening stream: live (http)
[cli][info] Writing output to
/tmp/bar
File /tmp/bar already exists! Overwrite it? [y/N]
$ streamlink httpstream://file:///tmp/foo best -o /tmp/bar --skip
[cli][info] Found matching plugin http for URL httpstream://file:///tmp/foo
[cli][info] Available streams: live (worst, best)
[cli][info] Opening stream: live (http)
[cli][info] Writing output to
/tmp/bar
[cli][error] File /tmp/bar already exists
$ streamlink httpstream://file:///tmp/foo best -o /tmp/bar --force --skip
[cli][info] Found matching plugin http for URL httpstream://file:///tmp/foo
[cli][info] Available streams: live (worst, best)
[cli][info] Opening stream: live (http)
[cli][info] Writing output to
/tmp/bar
[cli][error] File /tmp/bar already exists
$ streamlink httpstream://file:///tmp/foo best -o /tmp/bar --force
[cli][info] Found matching plugin http for URL httpstream://file:///tmp/foo
[cli][info] Available streams: live (worst, best)
[cli][info] Opening stream: live (http)
[cli][info] Writing output to
/tmp/bar
[cli][info] Stream ended
[cli][info] Closing currently open stream...
[download] Written 4 bytes to /tmp/bar (0s)

@bastimeyer bastimeyer merged commit 536d5ae into streamlink:master Aug 19, 2025
27 checks passed
@bastimeyer bastimeyer deleted the cli/add-skip-arg branch August 19, 2025 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The opposite of --force

1 participant