Fix skip intros sometimes not working due to a RuntimeError

This commit is contained in:
croneter 2021-02-13 18:08:05 +01:00
parent 39a27f750e
commit e6e99ba52b

View file

@ -5,7 +5,11 @@ from . import app, variables as v
def skip_intro(intros): def skip_intro(intros):
try:
progress = app.APP.player.getTime() progress = app.APP.player.getTime()
except RuntimeError:
# XBMC is not playing any media file yet
return
in_intro = False in_intro = False
for start, end in intros: for start, end in intros:
if start <= progress < end: if start <= progress < end: