Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YouTube video(s) not downloadable (or viewable?) from certain IP address(es): "Sign in to confirm you’re not a bot. This helps protect our community" #243

Open
holta opened this issue Aug 26, 2024 · 5 comments
Labels
bug Something isn't working question Further information is requested

Comments

@holta
Copy link
Member

holta commented Aug 26, 2024

Many yt-dlp users appear to be affected by YouTube blocking their IP addresses in recent weeks. Including our own test machine (LRN2.ORG) which has been affected for ~9 days now.

Error message:

Sign in to confirm you’re not a bot. This helps protect our community

FYI this appears to be quite different from past YouTube blocks of IP addresses — blocks which (typically, in the past) resolved themselves after 12+ hours?

@deldesir has identified others looking into and working on this:

Possible fix: (appears very promising)

Related:

@holta
Copy link
Member Author

holta commented Aug 28, 2024

It seems likely (or very possible!) that cloud VPS IP addresses might be more affected [more vulnerable to banning / blocking by YouTube] than residential/home/mobile IP addresses? As mentioned on...

@holta
Copy link
Member Author

holta commented Aug 28, 2024

@deldesir @chapmanjacobd

What's the best way to surface very important WARNINGS like Sign in to confirm you’re not a bot (example below) — making this visible to all users?

Is xklb's list of about 107 yt_unrecoverable_errors relevant and the right way to solve this?

# tail /var/log/xklb.log
2024-08-28 19:05:10 - [Info] [youtube] ecsfN_0wK8I: Downloading web creator player API JSON
2024-08-28 19:05:10 - [Debug] WARNING: [youtube] Sign in to confirm you’re not a bot. This helps protect our community. Learn more
2024-08-28 19:05:10 - [Debug] WARNING: No video formats found!
2024-08-28 19:05:10 - [Debug] no such table: playlists
2024-08-28 19:05:10 - [Debug] Importing playlist-less media https://www.youtube.com/watch?v=ecsfN_0wK8I
2024-08-28 19:05:10 - [Debug] media.playlist_media_add 1.0493
2024-08-28 19:05:10 - [Debug] WARNING: Requested format is not available
2024-08-28 19:05:10 - [Debug] ydl.extract_info done 0.1031
2024-08-28 19:05:10 - [Info]
2024-08-28 19:05:10 - [Info] lb-wrapper's xklb command (tubeadd) completed successfully.

@deldesir
Copy link
Collaborator

I tried to add ".*Sign in to confirm you’re not a bot" in /root/.local/share/pipx/venvs/xklb/lib64/python3.12/site-packages/xklb/data/yt_dlp_errors.py under yt_unrecoverable_errors without success. (I expected the error to be added in column media.error in xklb-metadata.db)

@holta
Copy link
Member Author

holta commented Aug 28, 2024

June 2024 news that (might) be related?! (Links from @deldesir)

@holta holta pinned this issue Aug 28, 2024
@moorchegue
Copy link

Being affected by this, I've found that access to the actual video files is not restricted, only to some metadata pages which are required to obtain correct URLs.

Would it be feasible to set up a 3rd party metadata repository that would be updated by users with unrestricted access?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants
@moorchegue @holta @deldesir and others