Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
[cbc.ca] Error 402: Payment Required #16764
Comments
|
Having looked at the cbc.py code - it does not user/understand a userid/password. I may be trying to update that code since I too download alot from cbc. I pretty well understand the login process, just gotta find time to code/test it. |
|
This is a feature i would love to see added to youtube-dl @mshiels . unfortunately i do not posses the skill required to do this myself, i guess its something I'm going to have to work towards in the future. |
|
The token dance is facilitated partly by loginradius Before submitting a username and password, you need an api key that I haven't been able to locate yet, but once the browser has negotiated the tokens I've been able to inject them into cbc.py and successfully downloaded login gated videos. |
|
@remitamine can I bug you to take a look at this PR |
|
I'm also looking how this can be achieved. I'd love to archive Heartland for my mother, with subtitle support. Even willing to pay the $5 CDN/mo for the subscription service. |
|
On this branch? Did you clear cache? |
|
@Sparktank check out #19160. It hasn't been merged yet, but it has some new code that will download from the CBC for free. Idk about subtitles though. |
|
I can confirm that subtitles don't work. |
i've used --rm-cache-dir which doesn't work. Also tried --no-cache-dir which also doesn't work. I've seen that ticket but don't know where to go from there. I don't use Python. When I do, it's the latest build available in 3.x. Is that a branch I will need to compile myself? |
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2018.06.18. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):
Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
Description of your issue, suggested solution and other information
Unlike Error 402 for Youtube which typically signifies too many requests, a restricted IP, or a CAPTCHA request, in this situation some of the videos on the site (mainly those not currently being broadcast but instead from a previous season, etc) require a free membership in order to watch them. In this situation, "Error 402: Payment Required" actually seems appropriate in that you need to be logged in to access select files. After trying multiple different options and variables, it appears that the youtube-dl interface is either not passing the login info to the page, or when logged in within the browser, the login info is not being save as a cookie that can be utilised by youtube-dl. Files that don't require logging in to view are easily downloaded.
Is there some sort of variable/option that I am missing that would circumvent the issue, or is it just not passing the credentials on to the site at the appropriate time?