Skip to content

Instantly share code, notes, and snippets.

@ninlith
Created November 18, 2025 13:19
Show Gist options
  • Select an option

  • Save ninlith/a9afbdcadca50c76754e5ab226e3f818 to your computer and use it in GitHub Desktop.

Select an option

Save ninlith/a9afbdcadca50c76754e5ab226e3f818 to your computer and use it in GitHub Desktop.
mpv user script to periodically save playback position.
-- 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)
@ninlith
Copy link
Author

ninlith commented Nov 18, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment