From c1aef09ee07aaee51133c8f4b0c62fea3939d034 Mon Sep 17 00:00:00 2001 From: smirgol <14124899+smirgol@users.noreply.github.com> Date: Tue, 14 May 2024 21:33:34 +0200 Subject: [PATCH] upnext changes * make return value of _compute_when_episode_ends optional --- resources/lib/videoplayer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/videoplayer.py b/resources/lib/videoplayer.py index 80b5638..8d2905e 100644 --- a/resources/lib/videoplayer.py +++ b/resources/lib/videoplayer.py @@ -247,7 +247,7 @@ def _handle_upnext(self): except Exception: utils.crunchy_log("_handle_upnext: Cannot send upnext notification", xbmc.LOGERROR) - def _compute_when_episode_ends(self) -> int: + def _compute_when_episode_ends(self) -> Optional[int]: upnext_mode = G.args.addon.getSetting("upnext_mode") if upnext_mode == "disabled": return None