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",