Skip to content

Commit

Permalink
upnext changes
Browse files Browse the repository at this point in the history
* make return value of _compute_when_episode_ends optional
  • Loading branch information
smirgol committed May 14, 2024
1 parent c3aabb3 commit c1aef09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/lib/videoplayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c1aef09

Please sign in to comment.