[skip ci] capture url errors
This commit is contained in:
1 parent
ba876be76d
commit
9dd634e8dd
2 files changed
+9
-4
No files matched your search
@@ -129,8 +129,12 @@ function ExecuteJob() as void
|
|||||||
playletStreamUrlIndex: 0
|
playletStreamUrlIndex: 0
|
||||||
})
|
})
|
||||||
|
|
||||||
LogDebug("Setting first url:", streamUrls[0])
|
firstUrl = streamUrls[0]
|
||||||
contentNode.url = streamUrls[0]
|
LogDebug("Setting first url:", firstUrl)
|
||||||
|
if StringUtils.IsNullOrEmpty(firstUrl)
|
||||||
|
LogError("First stream URL is empty!")
|
||||||
|
end if
|
||||||
|
contentNode.url = firstUrl
|
||||||
|
|
||||||
SetCaptions(metadata, service, contentNode)
|
SetCaptions(metadata, service, contentNode)
|
||||||
|
|
||||||
|
|||||||
@@ -460,10 +460,11 @@ function OnVideoPlayerStateChange() as void
|
|||||||
content.playletStreamUrlIndex = playletStreamUrlIndex
|
content.playletStreamUrlIndex = playletStreamUrlIndex
|
||||||
if playletStreamUrlIndex < playletStreamUrls.Count()
|
if playletStreamUrlIndex < playletStreamUrls.Count()
|
||||||
nextUrl = playletStreamUrls[playletStreamUrlIndex]
|
nextUrl = playletStreamUrls[playletStreamUrlIndex]
|
||||||
LogErrorNoTelemetry(`Stream ${currentUrl} failed to play. Trying next stream ${nextUrl}`)
|
msg = `Stream ${currentUrl} failed to play. Trying next stream ${nextUrl}`
|
||||||
|
LogErrorNoTelemetry(msg)
|
||||||
LogTelemetryEvent({
|
LogTelemetryEvent({
|
||||||
level: "error"
|
level: "error"
|
||||||
message: `Stream ${currentUrl} failed to play. Trying next stream ${nextUrl}`
|
message: msg
|
||||||
fingerprint: ["Stream <URL> failed to play. Trying next stream <URL>"]
|
fingerprint: ["Stream <URL> failed to play. Trying next stream <URL>"]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user