Skip to content

Instantly share code, notes, and snippets.

View TheDrHax's full-sized avatar

Дмитрий Карих TheDrHax

  • Moscow, Russian Federation
View GitHub Profile
@TheDrHax
TheDrHax / autosave.lua
Last active May 4, 2024 15:39 — forked from Hakkin/autosave.lua
MPV script that periodically saves "watch later" data during playback
-- autosave.lua
--
-- Periodically saves "watch later" data during playback, rather than only saving on quit.
-- This lets you easily recover your position in the case of an ungraceful shutdown of mpv (crash, power failure, etc.).
--
-- You can configure the save period by creating a "lua-settings" directory inside your mpv configuration directory.
-- Inside the "lua-settings" directory, create a file named "autosave.conf".
-- The save period can be set like so:
--
-- save_period=60