From caf8903873e527227d67a221d6a40c137a80c391 Mon Sep 17 00:00:00 2001 From: croneter Date: Wed, 24 Feb 2021 15:21:07 +0100 Subject: [PATCH] Fix rare TypeError: expected string or buffer on playback start --- resources/lib/kodimonitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/kodimonitor.py b/resources/lib/kodimonitor.py index d6e558ed..fc9872c2 100644 --- a/resources/lib/kodimonitor.py +++ b/resources/lib/kodimonitor.py @@ -288,7 +288,7 @@ class KodiMonitor(xbmc.Monitor): LOG.debug('Detected different path') try: tmp_plex_id = int(utils.REGEX_PLEX_ID.findall(path)[0]) - except IndexError: + except (IndexError, TypeError): LOG.debug('No Plex id in path, need to init playqueue') initialize = True else: