Created
November 18, 2025 13:19
-
-
Save ninlith/a9afbdcadca50c76754e5ab226e3f818 to your computer and use it in GitHub Desktop.
mpv user script to periodically save playback position.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Periodic saving of playback position. | |
| local interval = 10 -- seconds | |
| local function periodic_save() | |
| mp.command("write-watch-later-config") | |
| end | |
| mp.add_periodic_timer(interval, periodic_save) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(Made because I failed to find these with an online search: https://gist.github.com/Hakkin/5489e511bd6c8068a0fc09304c9c5a82, https://gist.github.com/CyberShadow/2f71a97fb85ed42146f6d9f522bc34ef.)