Dont decide playback on optimizedForStreaming

This commit is contained in:
croneter 2019-09-07 18:39:28 +02:00
parent e498736a96
commit b5fec41448
2 changed files with 1 additions and 6 deletions

View file

@ -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

View file

@ -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