tuner
This commit is contained in:
parent
e575fd1515
commit
b7d33b8e8f
@ -95,6 +95,7 @@ class Tuners():
|
||||
if not stream_args["channelUri"]:
|
||||
raise TunerError("806 - Tune Failed")
|
||||
|
||||
if "udp:" not in stream_args["channelUri"]:
|
||||
channelUri_headers = self.fhdhr.web.session.head(stream_args["channelUri"]).headers
|
||||
stream_args["true_content_type"] = channelUri_headers['Content-Type']
|
||||
|
||||
@ -102,5 +103,7 @@ class Tuners():
|
||||
stream_args["content_type"] = "video/mpeg"
|
||||
else:
|
||||
stream_args["content_type"] = stream_args["true_content_type"]
|
||||
else:
|
||||
stream_args["content_type"] = "video/mpeg"
|
||||
|
||||
return stream_args
|
||||
|
||||
Loading…
Reference in New Issue
Block a user