Skip to content

Commit

Permalink
Fix video unavailable blockage by switching back to ios client
Browse files Browse the repository at this point in the history
Credit to @alive4ever

Fixes #221
  • Loading branch information
user234683 committed Nov 23, 2024
1 parent 9ef54d1 commit d9801cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions youtube/watch.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@ 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',
})

def fetch_watch_page_info(video_id, playlist_id, index):
Expand Down Expand Up @@ -367,7 +366,7 @@ def extract_info(video_id, use_invidious, playlist_id=None, index=None):
gevent.spawn(fetch_watch_page_info, video_id, playlist_id, index),


gevent.spawn(fetch_player_response, 'android-test-suite', video_id)
gevent.spawn(fetch_player_response, 'ios', video_id)
)
gevent.joinall(tasks)
util.check_gevent_exceptions(*tasks)
Expand Down

0 comments on commit d9801cf

Please sign in to comment.