Use mobile embed page to bypass captcha blockage

The aggressive IP-blocking doesn't apply to embed pages

Fixes #47

Signed-off-by: Jesús <heckyel@hyperbola.info>
This commit is contained in:
James Taylor 2021-02-25 19:21:15 -08:00 committed by Jesús
parent 00ef1c8627
commit 07f14343c4
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -220,7 +220,7 @@ def decrypt_signatures(info, video_id):
def extract_info(video_id, use_invidious, playlist_id=None, index=None):
# bpctr=9999999999 will bypass are-you-sure dialogs for controversial
# videos
url = 'https://m.youtube.com/watch?v=' + video_id + '&bpctr=9999999999'
url = 'https://m.youtube.com/embed/' + video_id + '&bpctr=9999999999'
if playlist_id:
url += '&list=' + playlist_id
if index: