chapterskip icon indicating copy to clipboard operation
chapterskip copied to clipboard

Add Delay --Request

Open Cananbolt opened this issue 3 years ago • 4 comments

I would like to know if there can be a way to add a delay to the script.

For example, say I put a 5-second delay. After those 5 seconds, the chapter skips.

Cananbolt avatar Apr 11 '22 08:04 Cananbolt

You can wrap time-pos property setting inside an anonymous function with mp.addtimeout.
Interesting idea, may implement whenever I have a burst of motivation (and also implement more user requested features like pausing), but for now you'll have to do it yourself.

po5 avatar Apr 14 '22 10:04 po5

Sounds good. Thank you for acknowledging the request. Hopefully, sometime in the future, you may fulfill it when you have the chance. Nonetheless, thank you for the script.

Cananbolt avatar Apr 14 '22 16:04 Cananbolt

addtimeout solution: what if you get to a skipped chapter and decide to pause before the 5 seconds? I wouldn't want it to jump.
Adding an offset to chapter times would be a better solution, and play nicer with other functionality we may want to add.

po5 avatar Sep 06 '22 17:09 po5

Now that you mentioned it, that is a great point. Could the offset to chapter times be completed by a keybind? Something that may toggle to script on or off. On default, it would be on letting it skip the chapter, and once pressed, it will be off letting the chapter play all the way through.

Cananbolt avatar Sep 07 '22 07:09 Cananbolt