| Prevent resending mark watched - mpv-jellyfin - MPV script for adding an interf… | |
| Log | |
| Files | |
| Refs | |
| README | |
| LICENSE | |
| --- | |
| commit 107154084659d8f8946741de6817f81374f8c389 | |
| parent 524e099c861863aea23c91dd09090c85bcff8839 | |
| Author: Sebastien MacDougall-Landry <[email protected]… | |
| 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(-) | |
| --- | |
| 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..… | |
| video_id = "" | |
| end |