TOOLS/umpv: add optional argument --socket-file to umpv #10001
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
using argparse, add an optional argument to specify the socket file
used by the umpv script. Adding this feature can allow things such as
keeping a music playlist and video playlist separate, while retaining
the features of umpv, namely on-the-fly playlist appending. One could
bind a program (web browser, file manager, etc.) to open only to a
specified instance of mpv, and the uniqueness provided by the script can
be used to provide some rudimentary separation of content. Music and
video being separated are one hypothetical, but another is a playlist
of television content and youtube content. If you want to watch a
youtube video in the middle of a playlist, you can open to a "youtube"
instance of mpv (launched with umpv) and simply pause your television
content, without disrupting your playlist position.