We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
scripts_dir
sponsorblock.lua
I am using a following mpv config layout:
~/.config/mpv/ ├── input.conf └── scripts/ ├── modules.lua <-- loads scripts from sub-folders ├── mpv_sponsorblock/ │ ├── LICENSE │ ├── README.md │ ├── sponsorblock.lua │ └── sponsorblock_shared/... ├── ... └── ...
It however doesn't work with mpv_sponsorblock, as sponsorblock.lua is making assumption it was unpacked into the root of scripts/ folder.
mpv_sponsorblock
scripts/
Can scripts_dir variable be set to something like
scripts_dir = debug.getinfo(1).source:match("@?(.*/)")
so that it would be a bit more flexible?
The text was updated successfully, but these errors were encountered:
Would be better to rename the script to main.lua, move the contents of sponsorblock_shared to the root of the repo and use mp.get_script_directory().
mp.get_script_directory()
Like this: https://github.com/lucy/mpv_sponsorblock/commit/e0206e132b12f1bb0143afb72325a4d014a40be8
That way you can just clone the repo into your mpv scripts directory.
Sorry, something went wrong.
No branches or pull requests
I am using a following mpv config layout:
It however doesn't work with
mpv_sponsorblock
, assponsorblock.lua
is making assumption it was unpacked into the root ofscripts/
folder.Can
scripts_dir
variable be set to something likeso that it would be a bit more flexible?
The text was updated successfully, but these errors were encountered: