retreive potoken for bypass restrictions

Signed-off-by: Fijxu <fijxu@nadeko.net>
This commit is contained in:
Emilien Devos 2024-06-21 23:17:22 +02:00 committed by Fijxu
parent c7b8f470d8
commit b0cd6587bd
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4

View file

@ -285,6 +285,12 @@ module YoutubeAPI
} of String => String | Int64, } of String => String | Int64,
} }
visitor_data = REDIS_DB.get("VISITORDATA")
if visitor_data
client_context["client"]["visitorData"] = visitor_data
end
# Add some more context if it exists in the client definitions # Add some more context if it exists in the client definitions
if !client_config.screen.empty? if !client_config.screen.empty?
client_context["client"]["clientScreen"] = client_config.screen client_context["client"]["clientScreen"] = client_config.screen
@ -467,6 +473,9 @@ module YoutubeAPI
"html5Preference": "HTML5_PREF_WANTS", "html5Preference": "HTML5_PREF_WANTS",
}, },
}, },
"serviceIntegrityDimensions" => {
"poToken": REDIS_DB.get("POTOKEN"),
},
} }
# Append the additional parameters if those were provided # Append the additional parameters if those were provided