Coder Social home page Coder Social logo

Comments (7)

ByteDream avatar ByteDream commented on May 26, 2024 1

Update: This does not work since crunchyroll uses cloudflare as its hoster (or as proxy to their servers). Cloudflare notices that this specific request does not come from a browser but from crunchy-cli / crunchyroll-go and blocks the request.

So the only solution to this stays to not use classic urls at all :/

from crunchy-cli.

ByteDream avatar ByteDream commented on May 26, 2024

As fastest fix, I recommend using crunchyroll beta urls. These are always safe to use since the ids / names which are required by the api are fully contained by the url. Crunchyroll classic urls does not have these api friendly structure thus crunchyroll-go extracts the series and episode names from it and fires a search request after them. And this search request does not always return correct results, as we can see here.

Corresponding beta urls:

This error never happened to me but I knew it would come up at some point...

from crunchy-cli.

ByteDream avatar ByteDream commented on May 26, 2024

Fixed in new release v2.1.0.

from crunchy-cli.

BraveSail avatar BraveSail commented on May 26, 2024

Same here in lastest version.

The old episode url can be redirected to the new one with logged in, then we can find the new episode ID in the headers['location'] which can used in the new api, I think it's safer this way than search.

from crunchy-cli.

Askadelion avatar Askadelion commented on May 26, 2024

The redirect is not immediately active with some episodes series it often takes hours or days until the redirect is active. So there is nothing for sure.

from crunchy-cli.

ByteDream avatar ByteDream commented on May 26, 2024

Same here in lastest version.

The old episode url can be redirected to the new one with logged in, then we can find the new episode ID in the headers['location'] which can used in the new api, I think it's safer this way than search.

Thanks for the suggestion, that's actually a very good and saver way than search!

from crunchy-cli.

ByteDream avatar ByteDream commented on May 26, 2024

The redirect is not immediately active with some episodes series it often takes hours or days until the redirect is active. So there is nothing for sure.

I can check for the redirect first and if it's active, use the redirect target beta url, and if it's not active, just use the search way.

from crunchy-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.