Remove legacy proxy code

This commit is contained in:
syeopite
2024-04-07 11:08:12 -07:00
parent 08390acd0c
commit 990931ff67
5 changed files with 20 additions and 373 deletions

View File

@@ -50,9 +50,9 @@ def parse_related_video(related : JSON::Any) : Hash(String, JSON::Any)?
}
end
def extract_video_info(video_id : String, proxy_region : String? = nil)
def extract_video_info(video_id : String)
# Init client config for the API
client_config = YoutubeAPI::ClientConfig.new(proxy_region: proxy_region)
client_config = YoutubeAPI::ClientConfig.new
# Fetch data from the player endpoint
player_response = YoutubeAPI.player(video_id: video_id, params: "", client_config: client_config)