util: use visitorData for api request

watch: use android_vr client to get player data
This commit is contained in:
2025-02-28 10:43:14 +08:00
parent 4ef7dda14a
commit d361996fc0
2 changed files with 97 additions and 30 deletions

View File

@@ -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_vr', video_id)
)
gevent.joinall(tasks)
util.check_gevent_exceptions(*tasks)