Refactor format stream url
This commit is contained in:
1 parent
5c43bdf904
commit
b7e6a1ea83
3 files changed
+14
-12
No files matched your search
@@ -136,11 +136,8 @@ function OnVideoDetailsTaskResults(output as object) as void
|
||||
end if
|
||||
|
||||
if metadata.formatStreams.Count() > 0
|
||||
stream = metadata.formatStreams[metadata.formatStreams.Count() - 1]
|
||||
itag = stream.itag
|
||||
|
||||
playletStreamUrls.push(Invidious.GetVideoUrl(videoId, itag, false))
|
||||
playletStreamUrls.push(Invidious.GetVideoUrl(videoId, itag, true))
|
||||
playletStreamUrls.push(Invidious.GetVideoStreamUrl(videoId, false))
|
||||
playletStreamUrls.push(Invidious.GetVideoStreamUrl(videoId, true))
|
||||
end if
|
||||
end if
|
||||
|
||||
|
||||
Reference in new issue
Block a user