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
|
||||
stream = metadata.formatStreams[metadata.formatStreams.Count() - 1]
|
||||
itag = stream.itag
|
||||
streamUrl = Invidious.GetVideoUrl(videoId, itag, false)
|
||||
playletStreamUrls.push(streamUrl)
|
||||
if streamUrl.InStr("?") = -1
|
||||
streamUrlLocal = streamUrl + "?local=true"
|
||||
else
|
||||
streamUrlLocal = streamUrl + "&local=true"
|
||||
end if
|
||||
playletStreamUrls.push(streamUrlLocal)
|
||||
|
||||
playletStreamUrls.push(Invidious.GetVideoUrl(videoId, itag, false))
|
||||
playletStreamUrls.push(Invidious.GetVideoUrl(videoId, itag, true))
|
||||
end if
|
||||
end if
|
||||
|
||||
|
||||
Reference in new issue
Block a user