[skip ci] Hls: fallback to original url if failed to fetch
This commit is contained in:
1 parent
f3e60c639f
commit
963b44c8c8
1 file changed
+2
@@ -35,6 +35,8 @@ namespace Http
|
|||||||
|
|
||||||
if not hlsResponse.IsSuccess()
|
if not hlsResponse.IsSuccess()
|
||||||
LogError("Failed to fetch HLS manifest:", hlsResponse.ErrorMessage())
|
LogError("Failed to fetch HLS manifest:", hlsResponse.ErrorMessage())
|
||||||
|
response.Redirect(url)
|
||||||
|
return true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
hlsManifest = hlsResponse.Text()
|
hlsManifest = hlsResponse.Text()
|
||||||
|
|||||||
Reference in new issue
Block a user