Merge pull request #874 from stratumadev/master
Some checks failed
auto-documentation / documentation (push) Has been cancelled
build and push docker image / build-node (push) Has been cancelled
Style and build test / eslint (push) Has been cancelled
Style and build test / test (push) Has been cancelled

Updated Crunchyroll playback url from v1 to v2
This commit is contained in:
Stratum 2025-03-25 20:17:28 +01:00 committed by GitHub
commit 10b23752e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1428,7 +1428,7 @@ export default class Crunchy implements ServiceClass {
let playStream: CrunchyPlayStream | null = null;
if (options.cstream !== 'none') {
const playbackReq = await this.req.getData(`https://cr-play-service.prd.crunchyrollsvc.com/v1/${currentVersion ? currentVersion.guid : currentMediaId}/${CrunchyPlayStreams[options.cstream]}/play`, AuthHeaders);
const playbackReq = await this.req.getData(`https://cr-play-service.prd.crunchyrollsvc.com/v2/${currentVersion ? currentVersion.guid : currentMediaId}/${CrunchyPlayStreams[options.cstream]}/play`, AuthHeaders);
if (!playbackReq.ok || !playbackReq.res) {
console.error('Request Stream URLs FAILED!');
} else {