Allow live tv to direct stream

This commit is contained in:
angelblue05 2018-11-15 23:31:00 -06:00
parent ad6aa7e448
commit 25ecdadad6

View file

@ -182,11 +182,11 @@ class PlayUtils(object):
self.info['MediaSourceId'] = source['Id']
if source.get('RequiresClosing'):
''' Server is returning live tv stream with hardcoded 127.0.0.1. Skip over direct play/stream until fixed.
''' Server is returning live tv stream for direct play is hardcoded with 127.0.0.1.
'''
self.info['LiveStreamId'] = source['LiveStreamId']
source['SupportsDirectPlay'] = False
source['SupportsDirectStream'] = False
source['Protocol'] = "LiveTV"
if source.get('Protocol') == 'Http' or source['SupportsDirectPlay'] and (self.is_strm(source) or not settings('playFromStream.bool') and self.is_file_exists(source)):
@ -442,8 +442,6 @@ class PlayUtils(object):
"BreakOnNonKeyFrames": True
})
profile['DirectPlayProfiles'] = []
return profile
def set_external_subs(self, source, listitem):