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

Can you move to the next/previous bookmark when the list is closed in SimpleBookmark?

Open gpetridis opened this issue 1 year ago • 2 comments

At the moment I use mark_bookmark_as_chapter=yes. I can then move around the bookmarks using hotkeys set to add chapter -1 and add chapter 1. This works well it even loops back to the first chapter once you reach the end. The problem is for the chapters to be updated the file needs to be reloaded so every time you add/remove bookmarks they aren't imported as chapters until you open the file again. Can this be done without chapters?

gpetridis avatar Aug 28 '24 18:08 gpetridis

I think the best approach would be to fix chapters, basically it needs to reflect immediately without needing to reload. This should be doable, however, I paused development of these scripts for a while. I'll see what I can do when I am back to it, but no specific time from my side to do that as of now.

Eisa01 avatar Aug 28 '24 21:08 Eisa01

Added this to the bottom of the script which adds the functionality. No chapters needed. Not sure how eloquent this is but it does the job.

https://gist.github.com/gpetridis/82043aaacf25b64ab1ec2c6c8251f6bb

gpetridis avatar Aug 29 '24 15:08 gpetridis