aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/watch.py
diff options
context:
space:
mode:
authorAstound <kirito@disroot.org>2024-04-06 22:04:14 +0800
committerAstound <kirito@disroot.org>2024-04-06 22:04:14 +0800
commit6039589f24cd2368b1f14e063b46d4aa78f7b0df (patch)
treec73810976b80d7457e0c7484c9cc4cf81291e0d9 /youtube/watch.py
parentd4cba7eb6c82810b944e091308d91b771ad513ee (diff)
downloadyt-local-6039589f24cd2368b1f14e063b46d4aa78f7b0df.tar.lz
yt-local-6039589f24cd2368b1f14e063b46d4aa78f7b0df.tar.xz
yt-local-6039589f24cd2368b1f14e063b46d4aa78f7b0df.zip
Update `android` params
Discovered by LuanRT - https://github.com/LuanRT/YouTube.js/pull/624
Diffstat (limited to 'youtube/watch.py')
-rw-r--r--youtube/watch.py4
1 files changed, 2 insertions, 2 deletions
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)