Comments (6)
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.
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.
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.
Thanks! I'll give it a go once I get the chance.
from crunchy-cli.
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.
Just tried it and it works. Thanks a lot! Closing.
from crunchy-cli.
Related Issues (20)
- InvalidDigit in En-US audio HOT 1
- Unable to build from Git HOT 2
- Download archive command not updating files HOT 4
- Output Template Options remove special characters HOT 1
- Linux: Anime title not being sanitized HOT 4
- Subtitles are not fitting their usual format HOT 4
- Subtitle only option HOT 7
- An error occurred: JWT HOT 11
- error at line 7: Parse("invalid float literal") HOT 1
- add season_sequence_number to a episode output HOT 11
- To many active/parallel streams HOT 2
- Add custom download directory for output file HOT 2
- To extract audio HOT 1
- The other Competitor HOT 1
- how to download in es-LA or es-MX HOT 3
- Unknown TLS backend passed to `use_preconfigured_tls` HOT 4
- Video result in green or gray screen / DRM encrypted HOT 51
- Switch endpoint is now OMA encrypted HOT 2
- Version 3.6.7 bugs searching some animes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crunchy-cli.