From f469627d330ea83ecf36ce13abdfbbc6f69f49af Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 13 Feb 2021 18:08:05 +0100 Subject: [PATCH] Fix skip intros sometimes not working due to a RuntimeError --- resources/lib/skip_plex_intro.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/lib/skip_plex_intro.py b/resources/lib/skip_plex_intro.py index c5ea2d6c..ada9e1b9 100644 --- a/resources/lib/skip_plex_intro.py +++ b/resources/lib/skip_plex_intro.py @@ -6,7 +6,11 @@ from . import app, variables as v def skip_intro(intros): - progress = app.APP.player.getTime() + try: + progress = app.APP.player.getTime() + except RuntimeError: + # XBMC is not playing any media file yet + return in_intro = False for start, end in intros: if start <= progress < end: