retreive potoken for bypass restrictions
Signed-off-by: Fijxu <fijxu@nadeko.net>
This commit is contained in:
parent
c7b8f470d8
commit
b0cd6587bd
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue