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
Ext mpv, scripts set in ext mpv.conf are overridden by command line scripts #320
Comments
Last I checked I thought it still used lua scripts in the config too. If not I may need to map a script directory. |
I have confirmed scripts are still working with |
I added a You can download a build from GitHub Actions to test this. |
Using
Using external mpv allow me to have only one mpv to update, config and customize with scripts. |
|
What issues exactly ? At least for external mpv, with the following changes, It's working properly, without or with one or multiple scripts. jellyfin-mpv-shim/jellyfin_mpv_shim/player.py Lines 195 to 198 in 2c44996
change to:
and python_mpv_jsonipc.py change to:
Log
|
I'd have to look at how it works with the internal MPV library. But that being said if using --script is enough to get it to work with both I may just upgrade the jsonipc library since I control it. They already behave differently enough that the compatibility break may be worth it. |
That's probably a better solution anyways since then I don't need that annoying behavior where no override kills the built in OSC. |
I fixed it so that my scripts don't have any effect on user configured scripts. I did it using a similar method to what you explained, but I made it more general so that users of For libmpv it seems as long as the user config is configured after the scripts in the arguments, both take effect. This was the case so no additional changes are needed. I made it so that |
Describe the bug
With external mpv, scripts set in external mpv.conf are overridden by command line scripts mouse.lua/trickplay.lua.
It is seen in mpv logs provided.
To Reproduce
script=C:\Users\Jeffrey\repos\mpv-scripts-dev\dynamic-crop.lua
to%appdata%/Roaming/mpv/mpv.conf
Expected behavior
Append additional scripts, don't override previous one.
Alternative
Set custom scripts in
C:\Users\Jeffrey\AppData\Roaming\jellyfin-mpv-shim\mpv.conf
, like it's included after mouse.lua and trickplay.lua.Desktop:
Error Messages
The text was updated successfully, but these errors were encountered: