crunchy-labs / crunchy-cli

👇 Command-line downloader for Crunchyroll
MIT License
607 stars 63 forks source link

Cloudfront 403 Error #355

Closed Cazka closed 8 months ago

Cazka commented 8 months ago

When I try to download an episode, I get the following error:

./crunchy-cli download https://www.crunchyroll.com/de/watch/GJWU294XK/attack-on-titan-final-season-the-final-chapters-special-1
:: √ Logging in
:: √ Parsed url 1
:: √ Loaded series information for url 1
:: Attack on Titan Season 4 (Attack on Titan Final Season (German Dub))
::      1. Erdrumoren » S04ESP1
:: An error occurred: parse error HEAD: Expecting </META> found </HEAD> (https://pl.crunchyroll.com/evs3/25c7dccaa8c6970503b348dc97d006b0/assets/604ffb646f0fc34e3a0f00307d396093_,5265820.mp4,5265821.mp4,5265819.mp4,5265817.mp4,5265818.mp4,.urlset/manifest.mpd?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cCo6Ly9wbC5jcnVuY2h5cm9sbC5jb20vZXZzMy8yNWM3ZGNjYWE4YzY5NzA1MDNiMzQ4ZGM5N2QwMDZiMC9hc3NldHMvNjA0ZmZiNjQ2ZjBmYzM0ZTNhMGYwMDMwN2QzOTYwOTNfLDUyNjU4MjAubXA0LDUyNjU4MjEubXA0LDUyNjU4MTkubXA0LDUyNjU4MTcubXA0LDUyNjU4MTgubXA0LC51cmxzZXQvbWFuaWZlc3QubXBkIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzEwNTkzNzE5fX19XX0_&Signature=OOreZO8OpWmQi3UfX2zV9yK1bwK~OGQilnAyx18~7BNbDuEjmd0Xm5nmUr6flFwh40VXFGIRqjUwd1W2l-vyEm9DL9coo3pKAz10hDsSui1U4rWxNXctLF5AhI7CVKN9KKnwlgKcs1wx50h2kr6eLIq5s9sSm2tquz6e3bIDTt1OdaSlK9y4mJoNiueiK9V8DPG8bRZdKDDRaoO6~fiWVTC9qGaEbVRWTuOtc37kCpJ0~SPjlXJZP3yIGYFxIL7vC9klfMNJhw0TmGnEF3ZHdkrgyR9ykJbYfBPhKMC2nYKp~QEkyq1U6pH1VoEJiXld2j3t3nv6uZJYB4P6Okz9wA__&Key-Pair-Id=APKAJMWSQ5S7ZB3MF5VA): <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: The request could not be satisfied</TITLE>
</HEAD><BODY>
<H1>403 ERROR</H1>
<H2>The request could not be satisfied.</H2>
<HR noshade size="1px">
Request blocked.
We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
<BR clear="all">
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
<BR clear="all">
<HR noshade size="1px">
<PRE>
Generated by cloudfront (CloudFront)
Request ID: zHX99stDva3I9Mq3Ila7Icvuy26WYKAZUnmWhHlE9aIkl0HTBa4B1g==
</PRE>
<ADDRESS>
</ADDRESS>
</BODY></HTML>

It was working fine a few days ago.

Client:

tamodolo commented 8 months ago

It's a shame, it seems there's still no solution for this DRM issue. I even used an automated script to make the download of new episodes automatic haha. I hope the developers can find a workaround for this problem. I would even pay a reasonable amount (within my budget) monthly to keep this tool functional. I use StreamFab, but it doesn't compare to our beloved crunchy-cli. The real charm is in automation, and crunchy-cli is a thousand times more powerful. I'm eagerly awaiting an update that can bypass this issue.

I had my previous automated script working with yt-dlp. I just fixed mine yesterday and got back to work. It now uses 2 tools combined (because I'm lazy and the new tool is a nightmare to parse as it is but works as a charm for download and it is faster). I just changed my script to get the episode id instead of links as the new tool like a lot of that. I have opened an issue there for the dev to make CR API json dump to file (as it is easear and faster to make than console output) for now. This will make automation possible again using only one tool.

What is the new tool? It was discussed in this topic. Go read a bit.

bytedream commented 8 months ago

It's a shame, it seems there's still no solution for this DRM issue. [...]. I hope the developers can find a workaround for this problem.

Technically solutions are there. I have local code changes which is able to decrypt DRM (with the download command), but unfortunately I'm not allowed to distribute them legally. Sony owns Crunchyroll and Sony has a history of aggressively DMCA'ing projects and sending cease-and-desist letters. I might take the risk of a DMCA takedown, but I do not have the financial resources to pay a cease-and-desist letter (besides other legal trouble which might come along with it).

I use StreamFab [...]

StreamFab operates from China and Sony can't do anything against them. Sadly I doesn't reside in China (or any other country in which Sony can't take down the project) :p

kerkmann commented 8 months ago

StreamFab operates from China and Sony can't do anything against them. Sadly I doesn't reside in China (or any other country in which Sony can't take down the project) :p

Maybe we find someone from China who wants to provide a fork with the DRM code? jk :P

hazy-kun commented 8 months ago

It's a shame, it seems there's still no solution for this DRM issue. [...]. I hope the developers can find a workaround for this problem.

Technically solutions are there. I have local code changes which is able to decrypt DRM (with the download command), but unfortunately I'm not allowed to distribute them legally. Sony owns Crunchyroll and Sony has a history of aggressively DMCA'ing projects and sending cease-and-desist letters. I might take the risk of a DMCA takedown, but I do not have the financial resources to pay a cease-and-desist letter (besides other legal trouble which might come along with it).

I use StreamFab [...]

StreamFab operates from China and Sony can't do anything against them. Sadly I doesn't reside in China (or any other country in which Sony can't take down the project) :p

use alternatives methods to share it like TG or self-hosted solutions, just to not waste all the time on this project

bytedream commented 8 months ago

There won't be any further development. See #362

bytedream commented 8 months ago

Well a DRM-free endpoint was discovered, until this closes down development (or at least maintaining) will continue. See https://github.com/crunchy-labs/crunchy-cli/issues/362#issuecomment-2034838294.

v3.3.2 works again.