iiab / calibre-web

:books: Web app for browsing, reading and downloading eBooks stored in a Calibre database
GNU General Public License v3.0
3 stars 4 forks source link

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 2 weeks ago

holta commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

@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 commented 2 weeks ago

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 commented 2 weeks ago

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