mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.4k stars 2.91k forks source link

Scripts in folders are not loaded #8252

Closed RicBent closed 3 years ago

RicBent commented 3 years ago

Environment

Reproduction steps

Put any functional script (C/LUA/JS) into a folder and rename it to main.so/lua/js. See: https://mpv.io/manual/master/#script-location

Expected behavior

Script should be loaded.

Actual behavior

Script isn't loaded.

Log file

output.txt

Sample files

Applies to every input file.

avih commented 3 years ago

Well, it looks at the three script locations and doesn't find anything...

[   0.430][d][global] config path: 'scripts' -> '/home/bent/.config/mpv/scripts'
[   0.430][d][ytdl_hook] loading mp.defaults
[   0.430][d][global] config path: 'scripts' -/-> '/home/bent/.mpv/scripts'
[   0.430][d][console] loading mp.defaults
[   0.430][d][global] config path: 'scripts' -/-> '/etc/mpv/scripts'

Do you have any scripts there?

RicBent commented 3 years ago

Yeah I usually got a script called subs2srs.lua there that works. I moved it to /home/bent/.config/mpv/scripts/subs2srs/main.lua to reproduce the issue.

avih commented 3 years ago

I moved it to /home/bent/.config/mpv/scripts/subs2srs/main.lua to reproduce the issue.

Your version (0.32) doesn't support directory scripts.

See: https://mpv.io/manual/master/#script-location

This is a link to master - towards 0.33. You should look at your manual page which documents 0.32.

RicBent commented 3 years ago

Oh, thanks a lot!