Coder Social home page Coder Social logo

Comments (6)

 avatar commented on September 25, 2024

The video token needs to be deauthorized after the mpd got fetched.

Fix:
You need to do a patch fetch on this url with the contentid and videotoken:
https://cr-play-service.prd.crunchyrollsvc.com/v1/token/${content}/${token}/inactive

from crunchy-cli.

whimsee avatar whimsee commented on September 25, 2024

Got it. contentid would look like "GRDQPM1ZY", I suppose?

What does the videotoken look like? The error does provide several "token" keys, but they all seem to give {"error":"Unauthorized","reason":"invalid_token"}% when I patch fetch.

from crunchy-cli.

 avatar commented on September 25, 2024

Yeah sorry, I forgot to provide you the headers:

const headers = { Authorization: 'Bearer ${login.access_token}' }
const response = await fetch('https://cr-play-service.prd.crunchyrollsvc.com/v1/token/${contentid}/${videotoken}/inactive', { method: 'PATCH', headers: headers })

You get the video token when you fetch the playlist
https://cr-play-service.prd.crunchyrollsvc.com/v1/${contentid}/console/switch/play as token

from crunchy-cli.

whimsee avatar whimsee commented on September 25, 2024

Thanks! I'll give it a go once I get the chance.

from crunchy-cli.

bytedream avatar bytedream commented on September 25, 2024

I've added logic that should stop this behavior in v3.6.6.
This doesn't fully stop the error from occurring tho. When you already have a stream open, e.g. in the browser or app, and then try to run the command, it might still error because you can only watch a limited number of streams in parallel

from crunchy-cli.

whimsee avatar whimsee commented on September 25, 2024

Just tried it and it works. Thanks a lot! Closing.

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.