parent
8b5cafff3d
commit
9feb3d2f13
2 changed files with 3 additions and 1 deletions
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ export type APIType = {
|
|||
cms: string
|
||||
beta_browse: string
|
||||
beta_cms: string,
|
||||
drm: string;
|
||||
/**
|
||||
* Web Header
|
||||
*/
|
||||
|
|
@ -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: {},
|
||||
|
|
|
|||
Loading…
Reference in a new issue