From 0cd08d208f986b17f6ff726ff0c8a4ee3ac8b90f Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 25 Dec 2021 21:02:55 +0100 Subject: [PATCH] Fix playback report not working and AttributeError: 'NoneType' object has no attribute 'startswith' --- resources/lib/kodimonitor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/kodimonitor.py b/resources/lib/kodimonitor.py index b26c5fef..39092358 100644 --- a/resources/lib/kodimonitor.py +++ b/resources/lib/kodimonitor.py @@ -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