diff options
author | James Taylor <user234683@users.noreply.github.com> | 2021-02-25 19:21:15 -0800 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-02-26 11:40:38 -0500 |
commit | 07f14343c4ed7c752885dbca624628af7043d037 (patch) | |
tree | bc976e0317bc567c4ee833e1b560ef285c70895f /youtube/watch.py | |
parent | 00ef1c862744ec00886bc3fa4b95fdfc6c151866 (diff) | |
download | yt-local-07f14343c4ed7c752885dbca624628af7043d037.tar.lz yt-local-07f14343c4ed7c752885dbca624628af7043d037.tar.xz yt-local-07f14343c4ed7c752885dbca624628af7043d037.zip |
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>
Diffstat (limited to 'youtube/watch.py')
-rw-r--r-- | youtube/watch.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |