Skip to content

Commit

Permalink
use WEB when po_token + android test suite when no po_token
Browse files Browse the repository at this point in the history
  • Loading branch information
unixfox committed Nov 8, 2024
1 parent 792d0d5 commit f2c971b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/invidious/videos/parser.cr
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ end
def extract_video_info(video_id : String)
# Init client config for the API
client_config = YoutubeAPI::ClientConfig.new
# Use the WEB_CREATOR when po_token is configured because it fully only works on this client
# Use the WEB when po_token is configured
if CONFIG.po_token
client_config.client_type = YoutubeAPI::ClientType::WebCreator
client_config.client_type = YoutubeAPI::ClientType::Web
end

# Fetch data from the player endpoint
Expand Down Expand Up @@ -113,8 +113,8 @@ def extract_video_info(video_id : String)
new_player_response = try_fetch_streaming_data(video_id, client_config)
end

# Don't use Android client if po_token is passed because po_token doesn't
# work for Android client.
# Don't use Android test suite client if po_token is passed because po_token doesn't
# work for Android test suite client.
if reason.nil? && CONFIG.po_token.nil?
# Fetch the video streams using an Android client in order to get the
# decrypted URLs and maybe fix throttling issues (#2194). See the
Expand Down

0 comments on commit f2c971b

Please sign in to comment.