mirror of
https://github.com/fHDHR/fHDHR_NextPVR.git
synced 2025-12-06 05:36:59 -05:00
Merge pull request #126 from deathbybandaid/dev
Add Additional Error Handling for Streams
This commit is contained in:
commit
1eca980ae5
@ -99,6 +99,9 @@ class Tuners():
|
||||
stream_info = {"url": 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://"):
|
||||
stream_args["true_content_type"] = "video/mpeg"
|
||||
stream_args["content_type"] = "video/mpeg"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user