Fix
This commit is contained in:
1 parent
38f03a838c
commit
06120c6087
2 files changed
+8
-1
No files matched your search
@@ -51,8 +51,14 @@ end sub
|
|||||||
sub OnVideoPlayerStateChange()
|
sub OnVideoPlayerStateChange()
|
||||||
state = m.videoPlayer.state
|
state = m.videoPlayer.state
|
||||||
|
|
||||||
|
' If we successfully played the video, then any error that comes later is not due to rate limiting.
|
||||||
|
' This is to reduce false positives, as we do not want retry another link if the first link is working fine.
|
||||||
|
if state = "playing"
|
||||||
|
m.videoPlayingSuccess = true
|
||||||
|
end if
|
||||||
|
|
||||||
' A hack to see if we could use the proxy here
|
' A hack to see if we could use the proxy here
|
||||||
if state = "error"
|
if state = "error" and m.videoPlayingSuccess <> true
|
||||||
errorInfo = m.videoPlayer.errorInfo
|
errorInfo = m.videoPlayer.errorInfo
|
||||||
if errorInfo.category = "http"
|
if errorInfo.category = "http"
|
||||||
url = m.videoPlayer.content.url
|
url = m.videoPlayer.content.url
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ namespace RokuYoutube.Services.Invidious
|
|||||||
url: videoUrl
|
url: videoUrl
|
||||||
})
|
})
|
||||||
end if
|
end if
|
||||||
|
return videoMetadata
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function SearchSuggestions(q as string) as SearchSuggestionResult
|
function SearchSuggestions(q as string) as SearchSuggestionResult
|
||||||
|
|||||||
Reference in new issue
Block a user