From cae8cbdda8902a1343a2e8a1714adae8aafb8c44 Mon Sep 17 00:00:00 2001 From: Fijxu Date: Sat, 14 Sep 2024 19:06:52 -0300 Subject: [PATCH] Revert "retreive potoken for bypass restrictions" This reverts commit b0cd6587bdeac990f21e1568c073fefe69a63d19. --- src/invidious/yt_backend/youtube_api.cr | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/invidious/yt_backend/youtube_api.cr b/src/invidious/yt_backend/youtube_api.cr index 54323611..d66bf7aa 100644 --- a/src/invidious/yt_backend/youtube_api.cr +++ b/src/invidious/yt_backend/youtube_api.cr @@ -285,12 +285,6 @@ 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 @@ -487,9 +481,6 @@ module YoutubeAPI "playbackContext" => { "contentPlaybackContext" => playback_ctx, }, - "serviceIntegrityDimensions" => { - "poToken": REDIS_DB.get("POTOKEN"), - }, "serviceIntegrityDimensions" => { "poToken" => CONFIG.po_token, },