Skip to content

Commit

Permalink
[CR] Fix Non-DRM stream not always working
Browse files Browse the repository at this point in the history
  • Loading branch information
AnimeDL committed Apr 6, 2024
1 parent dce10bc commit 645cdc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crunchy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1397,7 +1397,7 @@ export default class Crunchy implements ServiceClass {
pbData = JSON.parse(playbackReq.res.body) as PlaybackData;
}

const playbackReq = await this.req.getData(`https://cr-play-service.prd.crunchyrollsvc.com/v1/${currentVersion?.guid}/console/switch/play`, AuthHeaders);
const playbackReq = await this.req.getData(`https://cr-play-service.prd.crunchyrollsvc.com/v1/${currentVersion ? currentVersion.guid : mMeta.mediaId}/console/switch/play`, AuthHeaders);
if(!playbackReq.ok || !playbackReq.res){
console.error('Non-DRM Request Stream URLs FAILED!');
} else {
Expand Down

0 comments on commit 645cdc2

Please sign in to comment.