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

Merge pull request #126 from deathbybandaid/dev

Add Additional Error Handling for Streams
This commit is contained in:
Deathbybandaid 2021-01-11 10:19:10 -05:00 committed by GitHub
commit 1eca980ae5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"