From 07f14343c4ed7c752885dbca624628af7043d037 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Thu, 25 Feb 2021 19:21:15 -0800 Subject: Use mobile embed page to bypass captcha blockage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The aggressive IP-blocking doesn't apply to embed pages Fixes #47 Signed-off-by: Jesús --- youtube/watch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'youtube') diff --git a/youtube/watch.py b/youtube/watch.py index 9e0ddf7..2e09a7c 100644 --- a/youtube/watch.py +++ b/youtube/watch.py @@ -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: -- cgit v1.2.3