Merge pull request #1755 from croneter/py3-fix-attributeerror
Fix playback report not working and AttributeError: 'NoneType' object has no attribute 'startswith'
This commit is contained in:
commit
688a15ac28
1 changed files with 2 additions and 1 deletions
|
@ -322,6 +322,7 @@ class KodiMonitor(xbmc.Monitor):
|
|||
kodi_type = item.kodi_type
|
||||
plex_id = item.plex_id
|
||||
plex_type = item.plex_type
|
||||
path = item.file
|
||||
if playqueue.id:
|
||||
container_key = '/playQueues/%s' % playqueue.id
|
||||
else:
|
||||
|
@ -329,7 +330,7 @@ class KodiMonitor(xbmc.Monitor):
|
|||
# Mechanik for Plex skip intro feature
|
||||
if utils.settings('enableSkipIntro') == 'true':
|
||||
status['intro_markers'] = item.api.intro_markers()
|
||||
if item.playmethod is None and not path.startswith('plugin://'):
|
||||
if item.playmethod is None and path and not path.startswith('plugin://'):
|
||||
item.playmethod = v.PLAYBACK_METHOD_DIRECT_PATH
|
||||
item.playerid = playerid
|
||||
# Remember the currently playing item
|
||||
|
|
Loading…
Reference in a new issue