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.
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like this:[x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.12.02. 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?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to 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:
n/a
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):
n/a
Description of your issue, suggested solution and other information
Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
CR-unblocker uses a US-based server that logs into crunchyroll and returns cookies to let the session pretend it started in the US which lets users elsewhere access geo-locked content.
I propose to add this as an opt-in to youtube-dl.
download page from crunchyroll with current cookies
if page contains the following tag in the footer
then continue as normal.
otherwise make request to cr-unblocker server (either default or user specified if running their own) with any log-in information passed.
adjust the current cookies using the response (in particular set
sess_idandsession_idto the response'ssession_id) and restart from 1 or fail out if trying too many times/ran out of log-in servers to try.The code that runs in the browser extension can be found in their repo: https://github.com/onestay/CR-Unblocker/blob/master/src/background_script.js (licensed under MIT)
current maintainer of cr-unblocker doesn't mind the server being used by youtube-dl: https://github.com/onestay/CR-Unblocker/issues/12 but punted it over to someone else to maintain it.