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

Sign in to confirm you're not a bot - YouTube #150

Open
djhmateer opened this issue Sep 5, 2024 · 2 comments
Open

Sign in to confirm you're not a bot - YouTube #150

djhmateer opened this issue Sep 5, 2024 · 2 comments
Labels
archiver bug Something isn't working

Comments

@djhmateer
Copy link
Contributor

Hi

I've been following this bug in yt-dlp where YouTube is now blocking downloads:

yt-dlp/yt-dlp#10128

I've implemented the OAuth2 workaround: yt-dlp/yt-dlp#10128 (comment)

It is working from a residential IP address server. (got banned from Azure server)

If anyone has other success (from Cloud servers?) that would be good to know about.

Also if you need archiving from one of my servers please get in touch. [email protected]

Regards
Dave

@msramalho
Copy link
Contributor

Also following the issue mentioned.

Current suggestion is to try the oauth2 plugin or rotate your IP (advice is to use residential proxies rather than VPNs).

@msramalho msramalho added bug Something isn't working archiver labels Sep 19, 2024
@djhmateer
Copy link
Contributor Author

As of release 2024.10.22 of yt-dlp, it has the OAuth flow built in. https://github.com/yt-dlp/yt-dlp/wiki/Extractors#logging-in-with-oauth

pipenv update

# check which version you are using
pipenv shell

yt-dlp --version

# note that the new version just needs oauth and not oauth2 at the end of the config line

# youtubedl_archiver.py
ydl_options = {'outtmpl': os.path.join(ArchivingContext.get_tmp_dir(), f'%(id)s.%(ext)s'), 'quiet': False, 'noplaylist': not self.allow_playlist , 'writesubtitles': self.subtitles, 'writeautomaticsub': self.subtitles, "live_from_start": self.live_from_start, "proxy": self.proxy, "max_downloads": self.max_downloads, "playlistend": self.max_downloads, "username": "oauth", "password": ""}

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

No branches or pull requests

2 participants