Potentially a more reliable way to get streams

This commit is contained in:
Brahim Hadriche committed 2022-11-05 15:49:48 -04:00
1 parent 464d436fa8
commit 45c618ccda
2 files changed
+17 -2

No files matched your search

+5 -1
View File
@@ -39,7 +39,11 @@ namespace RokuYoutube.Services.Invidious
end if
end function
function GetVideoMetadataForVideo(videoId as string)
function GetVideoUrl(videoId as string, itag as string)
return `${API_URL}/latest_version?id=${videoId}&itag=${itag}&local=true`
end function
function GetVideoMetadata(videoId as string)
url = `${API_URL}${VIDEOS_ENDPOINT}/${videoId}`
response = Requests().get(url)