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

mpv-chapters doesn´t load a mpv_chapters.conf file

Open camadog opened this issue 2 years ago • 0 comments

Hello, Apologies in advance about my English.

I would like to thank you for the plugin, I'm enjoying it, but I'd like to request an improvement, this plugin apparently doesn't load a conf file to change the default font color, etc... I didn't read the mpv documentation but I figured out that there has to be a similar function to lua, so I added the following line of code and it worked.

mp.options.read_options(options,"mpv_chapters");

I would also like an option to change the position of the chapter list, so I did something similar I added a couple of variables to de "options" object:

var options = { font_size: 16, font_color: "00FFFF", border_size: 1.0, border_color: "000000", font_color_currentChapter: "C27F1B", resX:0, resY:0, }; ... function drawChapterList() { var resY = options.resY; var resX = options.resX; ... //This last one cause, it didn't feel good for me after change it... function pos2chapter(x, y, overallscale) { var vectical = (y-options.resY) / (options.font_size * overallscale); I didn't test but I hope it could help with an improvement.

camadog avatar Feb 23 '23 02:02 camadog