retreive potoken for bypass restrictions
All checks were successful
Invidious CI / build (push) Successful in 4m31s

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 a64cc8a203
commit e753301401
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4

View file

@ -306,6 +306,12 @@ module YoutubeAPI
} 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
if !client_config.screen.empty?
client_context["client"]["clientScreen"] = client_config.screen
@ -488,6 +494,9 @@ module YoutubeAPI
"html5Preference": "HTML5_PREF_WANTS",
},
},
"serviceIntegrityDimensions" => {
"poToken": REDIS_DB.get("POTOKEN"),
},
}
# Append the additional parameters if those were provided