Merge pull request #1363 from croneter/py3-fix-typeerror

Fix rare TypeError: expected string or buffer on playback start
This commit is contained in:
croneter 2021-02-24 17:44:57 +01:00 committed by GitHub
commit 0ad7f89a62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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