Revert "retreive potoken for bypass restrictions"
All checks were successful
Invidious CI / build (push) Successful in 7m47s

This reverts commit b0cd6587bd.
This commit is contained in:
Fijxu 2024-09-14 19:06:52 -03:00
parent 100ecff0b3
commit cae8cbdda8
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4

View file

@ -285,12 +285,6 @@ 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
@ -487,9 +481,6 @@ module YoutubeAPI
"playbackContext" => { "playbackContext" => {
"contentPlaybackContext" => playback_ctx, "contentPlaybackContext" => playback_ctx,
}, },
"serviceIntegrityDimensions" => {
"poToken": REDIS_DB.get("POTOKEN"),
},
"serviceIntegrityDimensions" => { "serviceIntegrityDimensions" => {
"poToken" => CONFIG.po_token, "poToken" => CONFIG.po_token,
}, },