Prevent resending mark watched - mpv-jellyfin - MPV script for adding an interface for Jellyfin.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 107154084659d8f8946741de6817f81374f8c389
(DIR) parent 524e099c861863aea23c91dd09090c85bcff8839
(HTM) Author: Sebastien MacDougall-Landry <60635017+EmperorPenguin18@users.noreply.github.com>
Date: Mon, 23 Jan 2023 15:38:18 -0500
Prevent resending mark watched
Diffstat:
M scripts/jellyfin.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/scripts/jellyfin.lua b/scripts/jellyfin.lua
@@ -243,7 +243,7 @@ end
local function check_percent()
local pos = mp.get_property_number("percent-pos")
if pos then
- if pos > 95 then
+ if pos > 95 and #video_id > 0 then
send_request("POST", options.url.."/Users/"..user_id.."/PlayedItems/"..video_id.."?api_key="..api_key)
video_id = ""
end