Small refactor
This commit is contained in:
1 parent
deeaac06f7
commit
743ce20c0e
1 file changed
+3
-8
@@ -108,14 +108,9 @@ function OnVideoDetailsTaskResults() as void
|
|||||||
if metadata.formatStreams.Count() > 0
|
if metadata.formatStreams.Count() > 0
|
||||||
stream = metadata.formatStreams[metadata.formatStreams.Count() - 1]
|
stream = metadata.formatStreams[metadata.formatStreams.Count() - 1]
|
||||||
itag = stream.itag
|
itag = stream.itag
|
||||||
streamUrl = Invidious.GetVideoUrl(videoId, itag, false)
|
|
||||||
playletStreamUrls.push(streamUrl)
|
playletStreamUrls.push(Invidious.GetVideoUrl(videoId, itag, false))
|
||||||
if streamUrl.InStr("?") = -1
|
playletStreamUrls.push(Invidious.GetVideoUrl(videoId, itag, true))
|
||||||
streamUrlLocal = streamUrl + "?local=true"
|
|
||||||
else
|
|
||||||
streamUrlLocal = streamUrl + "&local=true"
|
|
||||||
end if
|
|
||||||
playletStreamUrls.push(streamUrlLocal)
|
|
||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user