Skip to content

Commit

Permalink
remove explicit usage of WEB
Browse files Browse the repository at this point in the history
  • Loading branch information
unixfox authored Nov 8, 2024
1 parent 69a624a commit ea9fb8c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/invidious/videos/parser.cr
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ end
def extract_video_info(video_id : String)
# Init client config for the API
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
player_response = YoutubeAPI.player(video_id: video_id, params: "2AMB", client_config: client_config)
Expand Down

0 comments on commit ea9fb8c

Please sign in to comment.