Xonshiz / anime-dl

Anime-dl is a command-line program to download anime from CrunchyRoll and Funimation.
MIT License
229 stars 37 forks source link

Cant download a entire show from Crunchyroll #84

Open metita opened 5 years ago

metita commented 5 years ago

That is, I am trying to download from a direct show URL but it just stays on

"Trying to login" -> "Logged in successfully..." and nothing happens, but trying an individual URL from a specific episode works perfectly.

I got the lastest version and got it working for months.

Abu3safeer commented 5 years ago

You are the third one having this issue, it work for me so I really don't know what causes this.

metita commented 5 years ago

Yesterday it was working, so its probably a thing from Crunchyroll, but single url episodes are working without problems.

Abu3safeer commented 5 years ago

Try using VPN, it might caused be blocking some connection, due to some debug from others it might be because some resources has been blocked, so the application tries to retrieve them and keep doing it forever.

you can use "verbose" option to see "error-log" file, remove your login from it and paste in the next comment.

metita commented 5 years ago
DEBUG: You have successfully set the Debugging On.
DEBUG: Arguments Provided : Namespace(input=['https://www.crunchyroll.com/es/that-time-i-got-reincarnated-as-a-slime/es'], language='Japanese', password=[''], range='All', resolution=['1080p'], skip=False, username=[''], verbose=True, version=False)
DEBUG: Operating System : Windows - 10 - 10.0.17134
DEBUG: Python Version : 2.7.15 (64bit)
DEBUG: You have successfully set the Debugging On.
DEBUG: Arguments Provided : Namespace(input=['https://www.crunchyroll.com/es/that-time-i-got-reincarnated-as-a-slime'], language='Japanese', password=[''], range='All', resolution=['1080p'], skip=False, username=[''], verbose=True, version=False)
DEBUG: Operating System : Windows - 10 - 10.0.17134
DEBUG: Python Version : 2.7.15 (64bit)
DEBUG: Starting new HTTPS connection (1): www.crunchyroll.com:443
DEBUG: https://www.crunchyroll.com:443 "GET /es/login HTTP/1.1" 503 None
DEBUG: Resetting dropped connection: www.crunchyroll.com
DEBUG: https://www.crunchyroll.com:443 "GET /cdn-cgi/l/chk_jschl?jschl_answer=10.8583045533&jschl_vc=54a3e5925a8fb7de5eb366a3b3958031&pass=1551304426.649-sG6zfNyQ7d HTTP/1.1" 302 159
DEBUG: https://www.crunchyroll.com:443 "GET /es/login HTTP/1.1" 200 None
DEBUG: https://www.crunchyroll.com:443 "POST /es/login HTTP/1.1" 302 None
DEBUG: https://www.crunchyroll.com:443 "GET / HTTP/1.1" 302 None
DEBUG: https://www.crunchyroll.com:443 "GET /es HTTP/1.1" 200 None
DEBUG: https://www.crunchyroll.com:443 "GET /es/that-time-i-got-reincarnated-as-a-slime HTTP/1.1" 200 None
DEBUG: Starting new HTTPS connection (1): www.crunchyroll.com:443
DEBUG: https://www.crunchyroll.com:443 "GET /es/that-time-i-got-reincarnated-as-a-slime HTTP/1.1" 503 None
DEBUG: Resetting dropped connection: www.crunchyroll.com
DEBUG: https://www.crunchyroll.com:443 "GET /cdn-cgi/l/chk_jschl?jschl_answer=10.6002179025&jschl_vc=d9660a39503854c004f22b2d77a5724e&pass=1551304437.583-dgt2LL6ALh HTTP/1.1" 302 159
DEBUG: https://www.crunchyroll.com:443 "GET /es/that-time-i-got-reincarnated-as-a-slime HTTP/1.1" 503 None
DEBUG: Resetting dropped connection: www.crunchyroll.com
DEBUG: https://www.crunchyroll.com:443 "GET /cdn-cgi/l/chk_jschl?jschl_answer=-14.516556570600002&jschl_vc=192d6250e80ab2573b6394e228f59bc5&pass=1551304445.826-KUdLkeYTgY HTTP/1.1" 302 159
DEBUG: https://www.crunchyroll.com:443 "GET /es/that-time-i-got-reincarnated-as-a-slime HTTP/1.1" 503 None
DEBUG: Resetting dropped connection: www.crunchyroll.com
DEBUG: https://www.crunchyroll.com:443 "GET /cdn-cgi/l/chk_jschl?jschl_answer=20.5555353054&jschl_vc=24418c8d4994639d938759465aeadcc8&pass=1551304454.039-XpuOXENCbi HTTP/1.1" 302 159
DEBUG: https://www.crunchyroll.com:443 "GET /es/that-time-i-got-reincarnated-as-a-slime HTTP/1.1" 503 None
DEBUG: Resetting dropped connection: www.crunchyroll.com
DEBUG: https://www.crunchyroll.com:443 "GET /cdn-cgi/l/chk_jschl?jschl_answer=22.3625314011&jschl_vc=faf98bbdbe277857cb0c43ae031d7d61&pass=1551304462.255-lerD0vkGev HTTP/1.1" 302 159
DEBUG: https://www.crunchyroll.com:443 "GET /es/that-time-i-got-reincarnated-as-a-slime HTTP/1.1" 503 None
DEBUG: Resetting dropped connection: www.crunchyroll.com
DEBUG: https://www.crunchyroll.com:443 "GET /cdn-cgi/l/chk_jschl?jschl_answer=36.0396884806&jschl_vc=59db41923d5098fd4191490fcb75e0b2&pass=1551304470.473-zgxX%2BVajTe HTTP/1.1" 302 159
DEBUG: https://www.crunchyroll.com:443 "GET /es/that-time-i-got-reincarnated-as-a-slime HTTP/1.1" 503 None
DEBUG: Resetting dropped connection: www.crunchyroll.com
DEBUG: https://www.crunchyroll.com:443 "GET /cdn-cgi/l/chk_jschl?jschl_answer=22.3637142222&jschl_vc=26f66a140b0a234bfb7f481b3c5f0a56&pass=1551304478.685-bHITOekD7g HTTP/1.1" 302 159
DEBUG: https://www.crunchyroll.com:443 "GET /es/that-time-i-got-reincarnated-as-a-slime HTTP/1.1" 503 None
DEBUG: Resetting dropped connection: www.crunchyroll.com
DEBUG: https://www.crunchyroll.com:443 "GET /cdn-cgi/l/chk_jschl?jschl_answer=17.8766059164&jschl_vc=fe8b904b2b1c980073914284366b2cec&pass=1551304486.903-kSMFrJI1mu HTTP/1.1" 302 159
DEBUG: https://www.crunchyroll.com:443 "GET /es/that-time-i-got-reincarnated-as-a-slime HTTP/1.1" 503 None
DEBUG: Resetting dropped connection: www.crunchyroll.com
DEBUG: https://www.crunchyroll.com:443 "GET /cdn-cgi/l/chk_jschl?jschl_answer=89.614910296&jschl_vc=fb17a31fc9ff09e69b0eb640ce006385&pass=1551304495.124-Jw%2B3Am6LNC HTTP/1.1" 302 159
DEBUG: https://www.crunchyroll.com:443 "GET /es/that-time-i-got-reincarnated-as-a-slime HTTP/1.1" 503 None
DEBUG: Resetting dropped connection: www.crunchyroll.com
DEBUG: https://www.crunchyroll.com:443 "GET /cdn-cgi/l/chk_jschl?jschl_answer=22.4468357596&jschl_vc=ad35c6d01bfee0c014cc8de64fee45d0&pass=1551304503.353-UfS9zBC1uc HTTP/1.1" 302 159
DEBUG: https://www.crunchyroll.com:443 "GET /es/that-time-i-got-reincarnated-as-a-slime HTTP/1.1" 503 None
DEBUG: Resetting dropped connection: www.crunchyroll.com
DEBUG: https://www.crunchyroll.com:443 "GET /cdn-cgi/l/chk_jschl?jschl_answer=20.1813442859&jschl_vc=fe64de3b7aee712df5506bc91dcbb3bc&pass=1551304511.57-OcdbQxeP8C HTTP/1.1" 302 159
DEBUG: https://www.crunchyroll.com:443 "GET /es/that-time-i-got-reincarnated-as-a-slime HTTP/1.1" 503 None
DEBUG: Resetting dropped connection: www.crunchyroll.com
DEBUG: https://www.crunchyroll.com:443 "GET /cdn-cgi/l/chk_jschl?jschl_answer=54.7167830735&jschl_vc=f97ff526435f23c928447a11a16bf28f&pass=1551304519.781-51Jo7IK%2F19 HTTP/1.1" 302 159
DEBUG: https://www.crunchyroll.com:443 "GET /es/that-time-i-got-reincarnated-as-a-slime HTTP/1.1" 503 None
DEBUG: Resetting dropped connection: www.crunchyroll.com
DEBUG: https://www.crunchyroll.com:443 "GET /cdn-cgi/l/chk_jschl?jschl_answer=27.9882819301&jschl_vc=36c4d69ef85423c3e7350ee0158f9ee2&pass=1551304528.009-%2BBehm1Ex9Y HTTP/1.1" 302 159
DEBUG: https://www.crunchyroll.com:443 "GET /es/that-time-i-got-reincarnated-as-a-slime HTTP/1.1" 503 None
DEBUG: Resetting dropped connection: www.crunchyroll.com
DEBUG: https://www.crunchyroll.com:443 "GET /cdn-cgi/l/chk_jschl?jschl_answer=21.8481108875&jschl_vc=34dade11898ac965cc412a1e232e926b&pass=1551304536.265-oRvYdy8G8b HTTP/1.1" 302 159
DEBUG: https://www.crunchyroll.com:443 "GET /es/that-time-i-got-reincarnated-as-a-slime HTTP/1.1" 503 None
DEBUG: Resetting dropped connection: www.crunchyroll.com
DEBUG: https://www.crunchyroll.com:443 "GET /cdn-cgi/l/chk_jschl?jschl_answer=19.7689837835&jschl_vc=78fe7c1cef30423b45371bad28c587a5&pass=1551304544.49-X9G%2BJFKqsx HTTP/1.1" 302 159
DEBUG: https://www.crunchyroll.com:443 "GET /es/that-time-i-got-reincarnated-as-a-slime HTTP/1.1" 503 None
DEBUG: Resetting dropped connection: www.crunchyroll.com
DEBUG: https://www.crunchyroll.com:443 "GET /cdn-cgi/l/chk_jschl?jschl_answer=41.164065643200004&jschl_vc=2f4df2e11d5ac314bd105944b6d62e1b&pass=1551304552.793-i11ZlBKImD HTTP/1.1" 302 159
DEBUG: https://www.crunchyroll.com:443 "GET /es/that-time-i-got-reincarnated-as-a-slime HTTP/1.1" 503 None
DEBUG: Resetting dropped connection: www.crunchyroll.com
DEBUG: https://www.crunchyroll.com:443 "GET /cdn-cgi/l/chk_jschl?jschl_answer=16.0494853851&jschl_vc=18cc9fa31efdfa4ea55dbcadb34d341a&pass=1551304561.032-2tw25%2FmZPQ HTTP/1.1" 302 159
DEBUG: https://www.crunchyroll.com:443 "GET /es/that-time-i-got-reincarnated-as-a-slime HTTP/1.1" 503 None
DEBUG: Resetting dropped connection: www.crunchyroll.com
DEBUG: https://www.crunchyroll.com:443 "GET /cdn-cgi/l/chk_jschl?jschl_answer=40.801166917900005&jschl_vc=37ec18fa28d2be01e6237379ef1c57d5&pass=1551304569.251-KvVWbbYPYl HTTP/1.1" 302 159
DEBUG: https://www.crunchyroll.com:443 "GET /es/that-time-i-got-reincarnated-as-a-slime HTTP/1.1" 503 None
DEBUG: Resetting dropped connection: www.crunchyroll.com
DEBUG: https://www.crunchyroll.com:443 "GET /cdn-cgi/l/chk_jschl?jschl_answer=31.930374244&jschl_vc=0e09100f1085272226e0f65ba6019328&pass=1551304577.474-fUQkRqyJNK HTTP/1.1" 302 159
DEBUG: https://www.crunchyroll.com:443 "GET /es/that-time-i-got-reincarnated-as-a-slime HTTP/1.1" 503 None
DEBUG: Resetting dropped connection: www.crunchyroll.com
DEBUG: https://www.crunchyroll.com:443 "GET /cdn-cgi/l/chk_jschl?jschl_answer=41.831280170300005&jschl_vc=42fe9d40b18c7b4eb625601b5d429b60&pass=1551304585.68-izyJA%2BiU5Z HTTP/1.1" 302 159
DEBUG: https://www.crunchyroll.com:443 "GET /es/that-time-i-got-reincarnated-as-a-slime HTTP/1.1" 503 None
DEBUG: Resetting dropped connection: www.crunchyroll.com
DEBUG: https://www.crunchyroll.com:443 "GET /cdn-cgi/l/chk_jschl?jschl_answer=29.6822603828&jschl_vc=6cdcbb5d4e06a1394aa008c42035cf08&pass=1551304593.926-NenBqKeA9x HTTP/1.1" 302 159
DEBUG: https://www.crunchyroll.com:443 "GET /es/that-time-i-got-reincarnated-as-a-slime HTTP/1.1" 503 None
DEBUG: Resetting dropped connection: www.crunchyroll.com
DEBUG: https://www.crunchyroll.com:443 "GET /cdn-cgi/l/chk_jschl?jschl_answer=43.1510060843&jschl_vc=d170a771e8a143ec85f0f512b174019e&pass=1551304602.148-FQMYMiQhv3 HTTP/1.1" 302 159
DEBUG: https://www.crunchyroll.com:443 "GET /es/that-time-i-got-reincarnated-as-a-slime HTTP/1.1" 503 None
DEBUG: Resetting dropped connection: www.crunchyroll.com
DEBUG: https://www.crunchyroll.com:443 "GET /cdn-cgi/l/chk_jschl?jschl_answer=26.8996651932&jschl_vc=55a1cf98469663c03d1cd5a356458299&pass=1551304610.38-ROtkPQspC9 HTTP/1.1" 302 159
DEBUG: https://www.crunchyroll.com:443 "GET /es/that-time-i-got-reincarnated-as-a-slime HTTP/1.1" 503 None
Abu3safeer commented 5 years ago

There are too much redirections, looks like links have changed somehow. Let's wait for @Xonshiz to see it himself, he might know something I don't.

axipher commented 5 years ago

I can confirm the show links don't work, but individual episodes still work.

ho-tross commented 5 years ago

Just browsing a similar issue on youtube-dl page and apparently changing the user agent in the code might have a bit of a effect

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36

But I don't know how many times it is referenced in the code so it might be a bit tedious to change.

metita commented 5 years ago

Still not working. Tested with #ho-tross User Agent but it didnt work

axipher commented 5 years ago

Looks like it might be working again. During the time it wasn't working, thumbnails for most recent episodes weren't working, just tried with Black Clover on Crunchyroll and it was able to download last week's and this week's episode no problem.