mxpv / podsync

Turn YouTube or Vimeo channels, users, or playlists into podcast feeds
MIT License
1.54k stars 266 forks source link

Unable to download from youtube: "Sign in to confirm you’re not a bot" #645

Open atmomomo opened 3 months ago

atmomomo commented 3 months ago

podsync suddenly stopped working since last week, I checked the log file and found the error message "Sign in to confirm you’re not a bot, etc. etc.". The reason is likely to be that YouTube recently blocked yt-dlp, and a possible solution, according to this issue, is not passing the cookies. Could you please help update podsync accordingly? Thank you very much!

AlrclyGit commented 3 months ago

I'm having this problem too.

Gasparos commented 3 months ago

Same here

steav commented 3 months ago

Same for me, looks like Hetzer Cloud + Server IPs got blocked by YT (at least for me). Workaround: smartproxy.com pay-as-you-go. Podsync config: youtube_dl_args = ["-vU", "--proxy", "socks5h://YOURCREDENTIALS@gate.smartproxy.com:7000"] => works for me.

Elycoo commented 3 months ago

I also have the same problem. The point podsync uses a token from my account. Isn't it considered a "log-in"?

I'm trying to disable requests for some time to youtube. I will try again in 3 days.

Elycoo commented 2 months ago

Same for me, looks like Hetzer Cloud + Server IPs got blocked by YT (at least for me). Workaround: smartproxy.com pay-as-you-go. Podsync config: youtube_dl_args = ["-vU", "--proxy", "socks5h://YOURCREDENTIALS@gate.smartproxy.com:7000"] => works for me.

@steav Which plan do I need to choose? I don't understand the differences.. Too complicated for me..

I also have the same problem. The point podsync uses a token from my account. Isn't it considered a "log-in"?

I'm trying to disable requests for some time to youtube. I will try again in 3 days.

It doesn't seem to work after all :(

Harnas commented 2 months ago

Podsync uses yt-dlp to download from youtube. Last time, Youtube changes their policy, and now yt-dlp have problems with downloading. More about that https://github.com/yt-dlp/yt-dlp/issues/10128

Elycoo commented 1 month ago

I used Oauth2 to log in with a new youtube account. I had to use cookies too. And to specify the cache-dir for yt-dlp too. It was quite hard, but now it works again. Good luck!

d4os commented 1 month ago

I moved podsync to my home PC, since I keep it on 24/7. You could also setup a VPN host at home and make your podsync server use it. It'd just keep retrying when it's off, but pull things when the vpn is available.

Harnas commented 1 month ago

@d4os try use yt-dlp nightly and set PO token https://github.com/yt-dlp/yt-dlp/issues/10128#issuecomment-2350782316

For each feed in file config, You must add following parameters to "youtube_dl_args" youtube_dl_args = [ .. "--sleep-requests", "1.5", "--min-sleep-interval", "60", "--max-sleep-interval", "90", "--cookies", "/app/cookies.txt", "--extractor-args", "youtube:player-client=web,default;po_token=web+ABCD...FGH"]

d4os commented 1 month ago

@Harnas do you need info if that worked? My clunky solution works, so I prefer it to something that

may help in some cases

So many websites outright block my Hetzner server that I accepted I need to move some things home.

halllo commented 3 weeks ago

I have the same problem. I dont think it has to do with a blocklisted IP, because everyday I get a new IP.

halllo commented 3 weeks ago

I dont understand how to get the PO token and the cookies. I followed this guide but to no avail. My requests dont seem to have them.

Did anybody get it working correctly and reliably?