NurioHin / mpv-bookmarker

A bookmarker menu to manage all your bookmarks in MPV
97 stars 24 forks source link

Bookmarks fail to load due to loadfile syntax change #20

Open Ilethas opened 7 months ago

Ilethas commented 7 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 2 weeks ago

Fixed it thanks!