NurioHin / mpv-bookmarker

A bookmarker menu to manage all your bookmarks in MPV
103 stars 25 forks source link

Bookmarks fail to load due to loadfile syntax change #20

Open Ilethas opened 8 months ago

Ilethas commented 8 months ago

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! 😃

Digita1Menace commented 1 month ago

Fixed it thanks!