Skip to content

Commit

Permalink
[CR] Hotfix DRM request
Browse files Browse the repository at this point in the history
Addresses #701
  • Loading branch information
AnimeDL committed May 29, 2024
1 parent 8b5caff commit 9feb3d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crunchy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1746,7 +1746,7 @@ export default class Crunchy implements ServiceClass {
const sessionId = new Date().getUTCMilliseconds().toString().padStart(3, '0') + process.hrtime.bigint().toString().slice(0, 13);
console.info('Decryption Needed, attempting to decrypt');

const decReq = await this.req.getData('https://pl.crunchyroll.com/drm/v1/auth', {
const decReq = await this.req.getData(`${api.drm}`, {
'method': 'POST',
'body': JSON.stringify({
'accounting_id': 'crunchyroll',
Expand Down
2 changes: 2 additions & 0 deletions modules/module.api-urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export type APIType = {
cms: string
beta_browse: string
beta_cms: string,
drm: string;
/**
* Web Header
*/
Expand Down Expand Up @@ -82,6 +83,7 @@ const api: APIType = {
cms: `${domain.api_beta}/content/v2/cms`,
beta_browse: `${domain.api_beta}/content/v1/browse`,
beta_cms: `${domain.api_beta}/cms/v2`,
drm: `${domain.api_beta}/drm/v1/auth`,
crunchyAuthHeader: {},
cruncyhAuthHeaderMob: {},
crunchyAuthHeaderSwitch: {},
Expand Down

0 comments on commit 9feb3d2

Please sign in to comment.