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
[crunchyroll] premium account does not work #17840
Comments
Crunchyroll put their login page behind cloudflare's anti-bot filter. A workaround is to visit the site using a regular browser, and then dump the cloudflare ID token into a cookies.txt file to use with youtube-dl (I used to have a little stub script to somewhat automate it with firefox, I'll have to look for it again) Note that you also have to change youtube-dl's user agent to match that of the browser you used to pass the check. EDIT: Here's the script. copy the 'cookies.sqlite' from firefox into the same directory as the script, and it produces a cookies.txt in the same directory. #!/usr/bin/env python3
import sqlite3
import http.cookiejar
def get_cookies(cj, ff_cookies):
con = sqlite3.connect(ff_cookies)
cur = con.cursor()
cur.execute("SELECT host, path, isSecure, expiry, name, value FROM moz_cookies WHERE baseDomain=?", ('crunchyroll.com',))
for item in cur.fetchall():
c = http.cookiejar.Cookie(0, item[4], item[5],
None, False,
item[0], item[0].startswith('.'), item[0].startswith('.'),
item[1], False,
item[2],
item[3], item[3]=="",
None, None, {})
print(c)
cj.set_cookie(c)
cj = http.cookiejar.MozillaCookieJar()
get_cookies(cj, "cookies.sqlite")
cj.save("cookies.txt") Then run youtube-dl like so, followed by the other options you use: |
thank you so much |
It did not work for me. Any idea? |
tutorial for Windows (my windows is 8.1) 09 - close Firefox |
Thank you. I made the process in Windows 10 and it worked, but in linux (openSUSE) my main system only worked once. |
Thanks guy, this workaround worked for me too on Arch Linux. |
Please follow the guide below
x
into all the boxes [ ] relevant to your issue (like this:[x]
)Make sure you are using the latest version: run
youtube-dl --version
and ensure your version is 2018.10.05. 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:
Add the
-v
flag to your command line you run youtube-dl with (youtube-dl -v <your command line>
), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):Description of your issue, suggested solution and other information
I get this error when trying to download crunchyroll premium videos. My Crunchyroll account is Premium, I can only share my account with admin for testing purposes
The text was updated successfully, but these errors were encountered: