1
0
mirror of https://github.com/fHDHR/fHDHR_NextPVR.git synced 2025-12-06 08:56:57 -05:00

Add Additional Error Handling for Streams

This commit is contained in:
deathbybandaid 2021-01-11 10:16:11 -05:00
parent cd24c5a4fe
commit 308c56da09

View File

@ -99,6 +99,9 @@ class Tuners():
stream_info = {"url": stream_info} stream_info = {"url": stream_info}
stream_args["stream_info"] = stream_info stream_args["stream_info"] = stream_info
if not stream_args["stream_info"]["url"]:
raise TunerError("806 - Tune Failed")
if stream_args["stream_info"]["url"].startswith("udp://"): if stream_args["stream_info"]["url"].startswith("udp://"):
stream_args["true_content_type"] = "video/mpeg" stream_args["true_content_type"] = "video/mpeg"
stream_args["content_type"] = "video/mpeg" stream_args["content_type"] = "video/mpeg"