How check if 402 Payment Required? #106

Closed
opened 2026-02-20 21:02:34 -05:00 by deekerman · 3 comments
Owner

Originally created by @Conquest-zz on GitHub (Aug 17, 2011).

Hello,

How can i see if there is an 402 Payment Required?

$dl = exec("youtube-dl -o "file.flv" "youtubelink");

I do it that way, but we have more than 15k downloads every day... so some times we have 402 Error, but how can i check if youtube-dl gives a 402 Error back?

regards

Originally created by @Conquest-zz on GitHub (Aug 17, 2011). Hello, How can i see if there is an 402 Payment Required? $dl = exec("youtube-dl -o "file.flv" "youtubelink"); I do it that way, but we have more than 15k downloads every day... so some times we have 402 Error, but how can i check if youtube-dl gives a 402 Error back? regards
Author
Owner

@phihag commented on GitHub (Sep 3, 2011):

This is covered in the FAQ: You're being blocked by youtube for excessive downloads and need to solve a CAPTCHA. Would it help if youtube-dl would give you said CAPTCHA to solve and offer to transfer it back to youtube?

@phihag commented on GitHub (Sep 3, 2011): This is covered in the [FAQ](http://rg3.github.com/youtube-dl/faq.html#q3): You're being blocked by youtube for excessive downloads and need to solve a CAPTCHA. Would it help if youtube-dl would give you said CAPTCHA to solve and offer to transfer it back to youtube?
Author
Owner

@samrat commented on GitHub (Oct 11, 2011):

@phihag - I'm facing the same problem and I think your solution is viable for my case, how can I do this?

@samrat commented on GitHub (Oct 11, 2011): @phihag - I'm facing the same problem and I think your solution is viable for my case, how can I do this?
Author
Owner

@phihag commented on GitHub (Oct 11, 2011):

@samrat Discussion of the implementation has been moved to #154. Fixing the issue is planned, but since I don't encounter it personally, I'm neither overly motivated nor able to do so. However, we'd certainly appreciate a git pull request with a graceful handling of CAPTCHAs.

@phihag commented on GitHub (Oct 11, 2011): @samrat Discussion of the implementation has been moved to #154. Fixing the issue is planned, but since I don't encounter it personally, I'm neither overly motivated nor able to do so. However, we'd certainly appreciate a git pull request with a graceful handling of CAPTCHAs.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#106
No description provided.