Update android params

Discovered by LuanRT - https://github.com/LuanRT/YouTube.js/pull/624
This commit is contained in:
2024-04-06 22:04:14 +08:00
parent d4cba7eb6c
commit 6039589f24
2 changed files with 4 additions and 8 deletions

View File

@@ -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)