From 86525c000d2e83c46d5b3c4bf29da5a125f0d4fa Mon Sep 17 00:00:00 2001 From: sxvghd Date: Thu, 16 May 2024 13:21:28 +0200 Subject: [PATCH] Properly reload the video (fix by @Ingvix) --- youtube-quality.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube-quality.lua b/youtube-quality.lua index b587f37..c30fb35 100644 --- a/youtube-quality.lua +++ b/youtube-quality.lua @@ -258,7 +258,7 @@ function reload_resume() local reload_duration = mp.get_property_native("duration") local time_pos = mp.get_property("time-pos") - mp.set_property_number("playlist-pos", playlist_pos) + mp.commandv("playlist-play-index", playlist_pos) -- Tries to determine live stream vs. pre-recordered VOD. VOD has non-zero -- duration property. When reloading VOD, to keep the current time position