Fix for proxied/geoblocked videos

This commit is contained in:
Brahim Hadriche committed 2022-11-05 20:26:59 -04:00
1 parent 7c24f36149
commit 215b4f4df2
3 files changed
+34 -8

No files matched your search

+6 -2
View File
@@ -57,8 +57,12 @@ namespace RokuYoutube.Services.Invidious
end if
end function
function GetVideoUrl(videoId as string, itag as string)
return `${API_URL}/latest_version?id=${videoId}&itag=${itag}&local=true`
function GetVideoUrl(videoId as string, itag as string, local as bool)
url = `${API_URL}/latest_version?id=${videoId}&itag=${itag}`
if local
url = url + "&local=true"
end if
return url
end function
function GetVideoMetadata(videoId as string)