From dbc2c7d52b4150701aa270a4adf4208cda13b9e8 Mon Sep 17 00:00:00 2001 From: AnimeDL Date: Wed, 22 May 2024 06:49:21 -0700 Subject: [PATCH] [CR] Hotfix non-DRM --- crunchy.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crunchy.ts b/crunchy.ts index 25718cb..2856028 100644 --- a/crunchy.ts +++ b/crunchy.ts @@ -1214,12 +1214,12 @@ export default class Crunchy implements ServiceClass { await this.refreshToken(true, true); let currentVersion; let isPrimary = mMeta.isSubbed; - const AuthHeaders = { + const AuthHeaders: RequestInit = { headers: { Authorization: `Bearer ${this.token.access_token}`, - 'X-Cr-Disable-Drm': 'true' - }, - useProxy: true + 'X-Cr-Disable-Drm': 'true', + 'User-Agent': 'Crunchyroll/1.8.0 Nintendo Switch/12.3.12.0 UE4/4.27' + } }; //Get Media GUID