Closed hendursaga closed 1 year ago
You could use extra_mpv_opts
. I don't think you should have to do any processing, you just have to remove the leading dashes and put them in an {option: value}
dict like this:
extra_options = {'fullscreen': 'yes', 'keep-open': 'yes'}
player = mpv.MPV(..., **extra_options)
Suppose I had a script that, like in bash and most other POSIX tools, stopped processing options past
--
, the so-called end of options convention. How might I pass those unprocessed options directly tompv
? I seeMPV
's constructor hasextra_mpv_flags
as well asextra_mpv_opts
, but that would mean I'd have to do some processing, no? I can't just pass a string. How do I get around this?