Skip to content

Lua error: multiloop.lua:263: attempt to compare number with nil #2

@slrslr

Description

@slrslr

Hello,

it worke for me. Thank you 👍

despite MPV states there is AB loop in manual page: "l Set/clear A-B loop points." it never looping for me. 🤔 (reason was that one of the custom lua scripts has assigned "l" key to it inside mpv config. file: nano /home/$(whoami)/.config/mpv/mpv.conf) so i prefixed that line by # and it started working)

Another option is mpv-multiloop:
wget -c https://raw.githubusercontent.com/unusualpepe/mpv-multiloop/master/multiloop.lua -P ~/.config/mpv/scripts/

Start mpv

Shift+M

Shift+1 (or 1 on english keyboard)
Shift+2 (or 2 on english keyboard)
l to start looping

after i do "q" to quit, i see on the terminal:

[multiloop] 
[multiloop] stack traceback:
[multiloop]     /home/user/.config/mpv/scripts/multiloop.lua:263: in function 'prop'
[multiloop]     mp.defaults:392: in function 'handler'
[multiloop]     mp.defaults:486: in function 'call_event_handlers'
[multiloop]     mp.defaults:520: in function 'dispatch_events'
[multiloop]     mp.defaults:479: in function <mp.defaults:478>
[multiloop]     [C]: in ?
[multiloop]     [C]: in ?
[multiloop] Lua error: /home/user/.config/mpv/scripts/multiloop.lua:263: attempt to compare number with nil

so just mentioning if this is something that can/should be fixed.

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