retreive potoken for bypass restrictions
All checks were successful
Invidious CI / build (push) Successful in 4m31s
All checks were successful
Invidious CI / build (push) Successful in 4m31s
Signed-off-by: Fijxu <fijxu@nadeko.net>
This commit is contained in:
parent
a64cc8a203
commit
e753301401
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue