From 6039589f24cd2368b1f14e063b46d4aa78f7b0df Mon Sep 17 00:00:00 2001 From: Astound Date: Sat, 6 Apr 2024 22:04:14 +0800 Subject: Update `android` params Discovered by LuanRT - https://github.com/LuanRT/YouTube.js/pull/624 --- youtube/watch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'youtube/watch.py') diff --git a/youtube/watch.py b/youtube/watch.py index 33b2742..09a3b76 100644 --- a/youtube/watch.py +++ b/youtube/watch.py @@ -343,7 +343,7 @@ def _add_to_error(info, key, additional_message): def fetch_player_response(client, video_id): return util.call_youtube_api(client, 'player', { 'videoId': video_id, - 'params': 'CgIQBg', + 'params': 'CgIIAQ==', }) @@ -372,7 +372,7 @@ def extract_info(video_id, use_invidious, playlist_id=None, index=None): tasks = ( # Get video metadata from here gevent.spawn(fetch_watch_page_info, video_id, playlist_id, index), - gevent.spawn(fetch_player_response, 'ios', video_id) + gevent.spawn(fetch_player_response, 'android', video_id) ) gevent.joinall(tasks) util.check_gevent_exceptions(*tasks) -- cgit v1.2.3