From b5fec41448b74295dfafba4c5de66d08db78fadb Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 7 Sep 2019 18:39:28 +0200 Subject: [PATCH] Dont decide playback on optimizedForStreaming --- resources/lib/playback_decision.py | 5 ----- resources/lib/plex_api/media.py | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/resources/lib/playback_decision.py b/resources/lib/playback_decision.py index d286a2c9..bf4bec0a 100644 --- a/resources/lib/playback_decision.py +++ b/resources/lib/playback_decision.py @@ -54,11 +54,6 @@ def _initial_best_playback_method(api, item): Sets the highest available playback method without talking to the PMS Also sets self.path for a direct path, if available and accessible """ - if api.should_stream(): - # True for e.g. plex.tv watch later - LOG.info('Plex item optimized for DirectPlay') - item.playmethod = v.PLAYBACK_METHOD_DIRECT_PLAY - return item.file = api.file_path() item.file = api.validate_playurl(item.file, api.plex_type, force_check=True) # Check whether we have a strm file that we need to throw at Kodi 1:1 diff --git a/resources/lib/plex_api/media.py b/resources/lib/plex_api/media.py index 61342f80..b65b29a9 100644 --- a/resources/lib/plex_api/media.py +++ b/resources/lib/plex_api/media.py @@ -12,7 +12,7 @@ LOG = getLogger('PLEX.api') class Media(object): - def should_stream(self): + def optimized_for_streaming(self): """ Returns True if the item's 'optimizedForStreaming' is set, False other- wise