Add hls proxied url
This commit is contained in:
1 parent
578798216d
commit
e41b484e58
2 files changed
+10
-2
No files matched your search
@@ -105,7 +105,15 @@ function OnVideoDetailsTaskResults(output as object) as void
|
|||||||
playletStreamUrls = []
|
playletStreamUrls = []
|
||||||
|
|
||||||
if metadata.hlsUrl <> invalid
|
if metadata.hlsUrl <> invalid
|
||||||
playletStreamUrls.push(metadata.hlsUrl)
|
hlsUrl = metadata.hlsUrl
|
||||||
|
playletStreamUrls.push(hlsUrl)
|
||||||
|
|
||||||
|
if hlsUrl.InStr("?") = -1
|
||||||
|
hlsUrlLocal = hlsUrl + "?local=true"
|
||||||
|
else
|
||||||
|
hlsUrlLocal = hlsUrl + "&local=true"
|
||||||
|
end if
|
||||||
|
playletStreamUrls.push(hlsUrlLocal)
|
||||||
else
|
else
|
||||||
if metadata.dashUrl <> invalid
|
if metadata.dashUrl <> invalid
|
||||||
|
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ function OnPositionChangeSkipSponsorBlockSections() as void
|
|||||||
if (segmentStart < currentPosition) and ((segmentEnd - 1) > currentPosition)
|
if (segmentStart < currentPosition) and ((segmentEnd - 1) > currentPosition)
|
||||||
' TODO: if segmentEnd is at the end of the video, close video
|
' TODO: if segmentEnd is at the end of the video, close video
|
||||||
m.top.seek = segmentEnd
|
m.top.seek = segmentEnd
|
||||||
print("Skiping section:" + segment["category"])
|
print("Skipping section:" + segment["category"])
|
||||||
SendSkippedSectionEvent(segment.UUID)
|
SendSkippedSectionEvent(segment.UUID)
|
||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
|
|||||||
Reference in new issue
Block a user