Skip to content

Instantly share code, notes, and snippets.

View Zedroid's full-sized avatar
👽
invading earth

Zedro Zedroid

👽
invading earth
View GitHub Profile
@Zedroid
Zedroid / redjard autosave.lua
Last active May 4, 2024 15:45 — forked from TheDrHax/autosave.lua
MPV script that periodically saves "watch later" data during playback
-- autosave.lua
--changes implemented with ChatGPT free cuts off at about 230 words so I manually replaced save_period_timer:stop() with doStop = true; not working on mpv.net
-- 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 "script-opts" directory inside your mpv configuration directory.
-- Inside the "script-opts" directory, create a file named "autosave.conf".
-- The save period can be set like so:
--
-- save_period=60