use web screen embed for fixing potoken functionality (#4923)

* use web screen embed for fixing potoken functionality

* use web screen embed only for getting streamingData + disable tv screen on po_token
This commit is contained in:
Émilien (perso)
2024-09-16 23:42:43 +02:00
committed by GitHub
parent 4782a67038
commit de918b9234
2 changed files with 11 additions and 5 deletions

View File

@@ -291,8 +291,9 @@ module YoutubeAPI
end
if client_config.screen == "EMBED"
# embedUrl https://www.google.com allow loading video that are configured not embeddable
client_context["thirdParty"] = {
"embedUrl" => "https://www.youtube.com/embed/#{video_id}",
"embedUrl" => "https://www.google.com/",
} of String => String | Int64
end