diff options
| author | Émilien Devos <contact@emiliendevos.be> | 2022-08-09 10:05:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-09 10:05:13 +0200 |
| commit | 7f2ec183721c55ea5718119e76c3fc6ce6cd72bf (patch) | |
| tree | 00a676278c0a8a03ac6fbb3afafe6e1fb84e852f | |
| parent | 9cc041876944dde46cd8cc3e269995244c8e7724 (diff) | |
| download | invidious-7f2ec183721c55ea5718119e76c3fc6ce6cd72bf.tar.gz invidious-7f2ec183721c55ea5718119e76c3fc6ce6cd72bf.tar.bz2 invidious-7f2ec183721c55ea5718119e76c3fc6ce6cd72bf.zip | |
Add param 8AEB for getting youtube stories
| -rw-r--r-- | src/invidious/videos.cr | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index f87c6b47..e9526c18 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -893,7 +893,8 @@ def extract_video_info(video_id : String, proxy_region : String? = nil, context_ end # Fetch data from the player endpoint - player_response = YoutubeAPI.player(video_id: video_id, params: "", client_config: client_config) + # 8AEB param for fetching YouTube stories + player_response = YoutubeAPI.player(video_id: video_id, params: "8AEB", client_config: client_config) playability_status = player_response.dig?("playabilityStatus", "status").try &.as_s @@ -931,7 +932,8 @@ def extract_video_info(video_id : String, proxy_region : String? = nil, context_ else client_config.client_type = YoutubeAPI::ClientType::Android end - android_player = YoutubeAPI.player(video_id: video_id, params: "", client_config: client_config) + # 8AEB param for fetching YouTube stories + android_player = YoutubeAPI.player(video_id: video_id, params: "8AEB", client_config: client_config) # Sometime, the video is available from the web client, but not on Android, so check # that here, and fallback to the streaming data from the web client if needed. |
