From ab090a6858f887ef15778c8071474c968064a56a Mon Sep 17 00:00:00 2001 From: AnimeDL Date: Fri, 28 Jun 2024 09:31:42 -0700 Subject: [PATCH] [CR] Whoops Forgot the other 3 login places --- crunchy.ts | 10 ++++++++-- package.json | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/crunchy.ts b/crunchy.ts index 4ecda2a..a29a0e9 100644 --- a/crunchy.ts +++ b/crunchy.ts @@ -256,6 +256,8 @@ export default class Crunchy implements ServiceClass { const authData = new URLSearchParams({ 'grant_type': 'client_id', 'scope': 'offline_access', + 'device_id': randomUUID(), + 'device_type': 'Chrome on Windows' }).toString(); const authReqOpts: reqModule.Params = { method: 'POST', @@ -306,7 +308,9 @@ export default class Crunchy implements ServiceClass { 'refresh_token': this.token.refresh_token, 'grant_type': 'refresh_token', //'grant_type': 'etp_rt_cookie', - 'scope': 'offline_access' + 'scope': 'offline_access', + 'device_id': randomUUID(), + 'device_type': 'Chrome on Windows' }).toString(); const authReqOpts: reqModule.Params = { method: 'POST', @@ -344,7 +348,9 @@ export default class Crunchy implements ServiceClass { 'refresh_token': this.token.refresh_token, 'grant_type': 'refresh_token', //'grant_type': 'etp_rt_cookie', - 'scope': 'offline_access' + 'scope': 'offline_access', + 'device_id': randomUUID(), + 'device_type': 'Chrome on Windows' }).toString(); const authReqOpts: reqModule.Params = { method: 'POST', diff --git a/package.json b/package.json index 36dad50..aef4e9e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "multi-downloader-nx", "short_name": "aniDL", - "version": "5.1.1", + "version": "5.1.2", "description": "Downloader for Crunchyroll, Hidive, AnimeOnegai, and AnimationDigitalNetwork with CLI and GUI", "keywords": [ "download",