Skip to content

sub-fonts-dir-auto.lua randomly doesn't work #5

@akiirui

Description

@akiirui

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions