Merge pull request #1341 from croneter/fix-skip-intro

Fix skip intros sometimes not working due to a RuntimeError
This commit is contained in:
croneter 2021-02-13 18:12:39 +01:00 committed by GitHub
commit faf8575537
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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: