summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilien <4016501+unixfox@users.noreply.github.com>2024-11-08 21:47:52 +0100
committerEmilien <4016501+unixfox@users.noreply.github.com>2024-11-09 22:21:09 +0100
commitb9ad9bd72331e8a568bd11813cb0169bd9c2a831 (patch)
tree46fa8baf32cbe52b3ea3596b4a46560af62fba2b
parentb173d4acf21563d47d26718eca7932878fb424e6 (diff)
downloadinvidious-b9ad9bd72331e8a568bd11813cb0169bd9c2a831.tar.gz
invidious-b9ad9bd72331e8a568bd11813cb0169bd9c2a831.tar.bz2
invidious-b9ad9bd72331e8a568bd11813cb0169bd9c2a831.zip
use WEB when po_token + android test suite when no po_token
-rw-r--r--src/invidious/videos/parser.cr8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/invidious/videos/parser.cr b/src/invidious/videos/parser.cr
index fb8935d9..b2744120 100644
--- a/src/invidious/videos/parser.cr
+++ b/src/invidious/videos/parser.cr
@@ -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
@@ -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