1
0
mirror of https://github.com/fHDHR/fHDHR_NextPVR.git synced 2025-12-06 11:16:58 -05:00

Add Tweak for future UDP variants

This commit is contained in:
deathbybandaid 2020-12-15 11:43:34 -05:00
parent 61779991ca
commit 73c5f23ed7

View File

@ -95,6 +95,11 @@ class Tuners():
if not stream_args["channelUri"]:
raise TunerError("806 - Tune Failed")
if stream_args["channelUri"].startswith("udp://"):
stream_args["true_content_type"] = "video/mpeg"
stream_args["content_type"] = "video/mpeg"
else:
channelUri_headers = self.fhdhr.web.session.head(stream_args["channelUri"]).headers
stream_args["true_content_type"] = channelUri_headers['Content-Type']