From dfcfa0edab82cf1b8845aea5a09ccc52280e14cd Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 6 Apr 2019 14:18:23 +0200 Subject: [PATCH] Better detect videos playing for playback cleanup --- 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 5e33666e..d38fa658 100644 --- a/resources/lib/kodimonitor.py +++ b/resources/lib/kodimonitor.py @@ -431,7 +431,7 @@ def _playback_cleanup(ended=False): DU().downloadUrl( '{server}/video/:/transcode/universal/stop', parameters={'session': v.PKC_MACHINE_IDENTIFIER}) - if playerid == 1: + if status['plex_type'] in v.PLEX_VIDEOTYPES: # Bookmarks might not be pickup up correctly, so let's do them # manually. Applies to addon paths, but direct paths might have # started playback via PMS