po5 / mpv_sponsorblock

mpv script to skip sponsored segments of YouTube videos
GNU General Public License v3.0
550 stars 29 forks source link

Lua error… '=' expected near continue #18

Closed paradox460 closed 4 years ago

paradox460 commented 4 years ago

When running MPV with this loaded, I get the following errors

[sponsorblock] Loading lua script /Users/jeffsandberg/.config/mpv/scripts/sponsorblock.lua...
[sponsorblock] loading mp.defaults
[sponsorblock] loading file /Users/jeffsandberg/.config/mpv/scripts/sponsorblock.lua
[sponsorblock]
[sponsorblock] stack traceback:
[sponsorblock]  [C]: ?
[sponsorblock]  [C]: ?
[sponsorblock] Lua error: /Users/jeffsandberg/.config/mpv/scripts/sponsorblock.lua:195: '=' expected near 'continue'
[sponsorblock] Exiting...

I am running mpv 0.32.0:

mpv 0.32.0 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects
 built on Fri Jan 31 11:28:05 CET 2020
ffmpeg library versions:
   libavutil       56.31.100
   libavcodec      58.54.100
   libavformat     58.29.100
   libswscale      5.5.100
   libavfilter     7.57.100
   libswresample   3.5.100
ffmpeg version: 4.2.2

and youtube-dl version 2020.06.16.1

po5 commented 4 years ago

Seems like a Lua 5.1 issue. Does https://github.com/po5/mpv_sponsorblock/commit/5700e32efc7c761bdbc92ce5afb5a61f14abc0f1 work for you?

paradox460 commented 4 years ago

That seems to solve it