Small refactor

This commit is contained in:
Brahim Hadriche committed 2022-12-08 22:05:31 -05:00
1 parent deeaac06f7
commit 743ce20c0e
1 file changed
+3 -8
+3 -8
View File
@@ -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