Fix rare TypeError: expected string or buffer on playback start
This commit is contained in:
parent
07ed0d1105
commit
a12e07da6a
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ class KodiMonitor(xbmc.Monitor):
|
||||||
LOG.debug('Detected different path')
|
LOG.debug('Detected different path')
|
||||||
try:
|
try:
|
||||||
tmp_plex_id = int(utils.REGEX_PLEX_ID.findall(path)[0])
|
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')
|
LOG.debug('No Plex id in path, need to init playqueue')
|
||||||
initialize = True
|
initialize = True
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue