aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉmilien (perso) <4016501+unixfox@users.noreply.github.com>2024-09-20 02:05:41 +0200
committerGitHub <noreply@github.com>2024-09-20 00:05:41 +0000
commita021b93063f3956fc9bb3cce0fb56ea252422738 (patch)
treead52dfe9f751a328827d9f1fd62bc1b28a16bd7b
parentd9df90b5e3ab6f738907c1bfaf96f0407368d842 (diff)
Update latest version WEB_CREATOR + fix comment web embed (#4930)HEADmaster
* Update to latest version WEB_CREATOR * fix comment about using web embed as a fallback
-rw-r--r--src/invidious/videos/parser.cr2
-rw-r--r--src/invidious/yt_backend/youtube_api.cr2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/invidious/videos/parser.cr b/src/invidious/videos/parser.cr
index ca6500ed..811a0a03 100644
--- a/src/invidious/videos/parser.cr
+++ b/src/invidious/videos/parser.cr
@@ -106,7 +106,7 @@ def extract_video_info(video_id : String)
106 106
107 new_player_response = nil 107 new_player_response = nil
108 108
109 # Second try in case WEB_EMBEDDED_PLAYER doesn't work with po_token. 109 # Second try in case WEB_CREATOR doesn't work with po_token.
110 # Only trigger if reason found and po_token configured. 110 # Only trigger if reason found and po_token configured.
111 if reason && CONFIG.po_token 111 if reason && CONFIG.po_token
112 client_config.client_type = YoutubeAPI::ClientType::WebEmbeddedPlayer 112 client_config.client_type = YoutubeAPI::ClientType::WebEmbeddedPlayer
diff --git a/src/invidious/yt_backend/youtube_api.cr b/src/invidious/yt_backend/youtube_api.cr
index 99ec6e63..baa3cd92 100644
--- a/src/invidious/yt_backend/youtube_api.cr
+++ b/src/invidious/yt_backend/youtube_api.cr
@@ -84,7 +84,7 @@ module YoutubeAPI
84 ClientType::WebCreator => { 84 ClientType::WebCreator => {
85 name: "WEB_CREATOR", 85 name: "WEB_CREATOR",
86 name_proto: "62", 86 name_proto: "62",
87 version: "1.20220918", 87 version: "1.20240918.03.00",
88 os_name: "Windows", 88 os_name: "Windows",
89 os_version: WINDOWS_VERSION, 89 os_version: WINDOWS_VERSION,
90 platform: "DESKTOP", 90 platform: "DESKTOP",