Open robertgzr opened 1 year ago
i guess this kind of depends on #17
Wouldn't mp.find_config_file("scripts/sponsorblock_shared")
work as well?
I'd like to keep support for mpv <0.33.0 if it doesn't add complexity.
yeah that seems to work as well...
I'd like to keep support for mpv <0.33.0 if it doesn't add complexity.
Out of curiosity, is there a particular reason? Glancing through Repology, mpv 0.33 (or later) seems to be in all currently-supported releases of all major software distributions.
I'm asking because it adds some complexity downstream instead, both for users who manually clone the repo and copy/symlink files into place, and for distro packagers; granted, IDK of anyone packaging mpv scripts outside of us in nixpkgs.
the scripts_dir detection logic uses
mp.find_config_file("scripts")
which returns$XDG_CONFIG_HOME/mpv/scripts
even if the plugin is installed globally under/etc/mpv/scripts
.fix this by using
mp.get_script_directory()
, which requires the install the plugin in ascript directory
, but that is recommended anyway for plugins like this one: https://mpv.io/manual/master/#script-location