mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-15 04:38:24 +00:00
remove explicit usage of WEB
This commit is contained in:
parent
f3e93ca83d
commit
0f8f32bca8
@ -53,10 +53,6 @@ end
|
|||||||
def extract_video_info(video_id : String)
|
def extract_video_info(video_id : String)
|
||||||
# Init client config for the API
|
# Init client config for the API
|
||||||
client_config = YoutubeAPI::ClientConfig.new
|
client_config = YoutubeAPI::ClientConfig.new
|
||||||
# Use the WEB when po_token is configured
|
|
||||||
if CONFIG.po_token
|
|
||||||
client_config.client_type = YoutubeAPI::ClientType::Web
|
|
||||||
end
|
|
||||||
|
|
||||||
# Fetch data from the player endpoint
|
# Fetch data from the player endpoint
|
||||||
player_response = YoutubeAPI.player(video_id: video_id, params: "2AMB", client_config: client_config)
|
player_response = YoutubeAPI.player(video_id: video_id, params: "2AMB", client_config: client_config)
|
||||||
|
Loading…
Reference in New Issue
Block a user