NurioHin / mpv-bookmarker

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

Separate databases for each file? #7

Open mwsduelle opened 3 years ago

mwsduelle commented 3 years ago

Is it possible to have a separate database for each file without rewriting the script? And have them named bookmarker-[filename].json or something?

DevinMadsen commented 3 years ago

You could do it manually by changing the "bookmarkerName" variable for each new file and that would make a new database each time. I don't believe there is an automatic way to do this. You could also use my pull request #6 if the video is alone in a folder that would create a new database for each folder. I could probably throw something together quickly that would add the functionality automatically that you are wanting if those methods aren't sufficient.

mwsduelle commented 3 years ago

It would be very helpful is there was a simple true/false switch in the script for it. Also, is there a way to set a key to load a bookmark based on what number it is on the page (e.g.: 1 to load 1, etc)?

DevinMadsen commented 3 years ago

I'll work on the separate databases, but that second feature needs its own issue I don't think the menu has support for that.

DevinMadsen commented 3 years ago

There you go @mwsduelle just use the branch of #9 it should do what you are wanting. Make sure to set the "separateTable" to true because the default value is false.

noctuid commented 3 years ago

It would be nice if the json file could be stored in the same directory as the video and also not use an absolute path to the video file (it would be loaded as long as it was in the same directory regardless of where the video file was moved).