This commit is contained in:
angelblue05 2018-03-16 17:45:48 -05:00
parent a2fb25a922
commit 582d90110d
1 changed files with 4 additions and 5 deletions

View File

@ -139,8 +139,7 @@ class PlayUtils():
''' Because we posted our deviceprofile to the server, only streams will be ''' Because we posted our deviceprofile to the server, only streams will be
returned that can actually be played by this client so no need to check bitrates etc. returned that can actually be played by this client so no need to check bitrates etc.
''' '''
if (not self.force_transcode and (self.is_strm(source) or self.is_h265(source) or
if (not self.force_transcode and (self.is_h265(source) or self.is_strm(source) or
(source['SupportsDirectPlay'] and settings('playFromStream') == "false" and self.is_file_exists(source)))): (source['SupportsDirectPlay'] and settings('playFromStream') == "false" and self.is_file_exists(source)))):
# Do nothing, path is updated with our verification if applies. # Do nothing, path is updated with our verification if applies.
pass pass
@ -155,7 +154,7 @@ class PlayUtils():
path = self.get_direct_path(source) path = self.get_direct_path(source)
if xbmcvfs.exists(path): # or ":" not in path: if xbmcvfs.exists(path): # or ":" not in path:
log.info("Path exists or assumed linux or web.") log.info("Path exists.")
self.method = "DirectPlay" self.method = "DirectPlay"
source['Path'] = path source['Path'] = path
@ -166,8 +165,8 @@ class PlayUtils():
return False return False
def is_strm(self, source): def is_strm(self, source):
if source['Container'] == "strm": if source['Container'] == "strm" or '.strm' in self.item['Path']:
log.info('Strm detected.') log.info('Strm detected.')
self.method = "DirectPlay" self.method = "DirectPlay"