mpv-bookmarker icon indicating copy to clipboard operation
mpv-bookmarker copied to clipboard

Bookmarks fail to load due to loadfile syntax change

Open Ilethas opened this issue 11 months ago • 0 comments

After recent updates in mpv, there was a change in loadfile command and bookmarks no longer load. You can see the issue mentioned here: https://github.com/mpv-player/mpv/issues/13656.

You can fix the problem by replacing the following line:

mp.commandv("loadfile", parsePath(bookmark["path"]), "replace", "start="..bookmark["pos"])

with this line:

mp.commandv("loadfile", parsePath(bookmark["path"]), "replace", -1, "start="..bookmark["pos"])

I saw someone make an adjustment here to make it work with both old and new mpv versions: image

Hope it helps! 😃

Ilethas avatar Mar 20 '24 23:03 Ilethas