Put sub-fonts-dir-auto.lua to scripts/, and run mpv -v VIDEO_FILE.
This lua randomly doesn't trigger, no [cplayer] Running hook: sub_fonts_dir_auto/on_load is found from outputs.
If you increase the priority mp.add_hook("on_load", 1, on_load) or change the trigger condition mp.register_event("file-loaded", on_load) It works fine.
Put
sub-fonts-dir-auto.luatoscripts/, and runmpv -v VIDEO_FILE.This lua randomly doesn't trigger, no
[cplayer] Running hook: sub_fonts_dir_auto/on_loadis found from outputs.If you increase the priority
mp.add_hook("on_load", 1, on_load)or change the trigger conditionmp.register_event("file-loaded", on_load)It works fine.