[CR] Hotfix login
Also increment version
This commit is contained in:
parent
cd9586ab13
commit
05d679e6ca
3 changed files with 7 additions and 3 deletions
|
|
@ -45,6 +45,7 @@ import { CrunchyChapters, CrunchyChapter, CrunchyOldChapter } from './@types/cru
|
||||||
import vtt2ass from './modules/module.vtt2ass';
|
import vtt2ass from './modules/module.vtt2ass';
|
||||||
import { CrunchyPlayStream } from './@types/crunchyPlayStreams';
|
import { CrunchyPlayStream } from './@types/crunchyPlayStreams';
|
||||||
import { CrunchyPlayStreams } from './@types/enums';
|
import { CrunchyPlayStreams } from './@types/enums';
|
||||||
|
import { randomUUID } from 'node:crypto';
|
||||||
|
|
||||||
export type sxItem = {
|
export type sxItem = {
|
||||||
language: langsData.LanguageItem,
|
language: langsData.LanguageItem,
|
||||||
|
|
@ -229,7 +230,9 @@ export default class Crunchy implements ServiceClass {
|
||||||
'username': data.username,
|
'username': data.username,
|
||||||
'password': data.password,
|
'password': data.password,
|
||||||
'grant_type': 'password',
|
'grant_type': 'password',
|
||||||
'scope': 'offline_access'
|
'scope': 'offline_access',
|
||||||
|
'device_id': randomUUID(),
|
||||||
|
'device_type': 'Chrome on Windows'
|
||||||
}).toString();
|
}).toString();
|
||||||
const authReqOpts: reqModule.Params = {
|
const authReqOpts: reqModule.Params = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ const api: APIType = {
|
||||||
// beta api
|
// beta api
|
||||||
beta_auth: `${domain.api_beta}/auth/v1/token`,
|
beta_auth: `${domain.api_beta}/auth/v1/token`,
|
||||||
authBasic: 'Basic bm9haWhkZXZtXzZpeWcwYThsMHE6',
|
authBasic: 'Basic bm9haWhkZXZtXzZpeWcwYThsMHE6',
|
||||||
authBasicMob: 'Basic d2piMV90YThta3Y3X2t4aHF6djc6MnlSWlg0Y0psX28yMzRqa2FNaXRTbXNLUVlGaUpQXzU=',
|
authBasicMob: 'Basic dXU4aG0wb2g4dHFpOWV0eXl2aGo6SDA2VnVjRnZUaDJ1dEYxM0FBS3lLNE85UTRhX3BlX1o=',
|
||||||
authBasicSwitch: 'Basic dC1rZGdwMmg4YzNqdWI4Zm4wZnE6eWZMRGZNZnJZdktYaDRKWFMxTEVJMmNDcXUxdjVXYW4=',
|
authBasicSwitch: 'Basic dC1rZGdwMmg4YzNqdWI4Zm4wZnE6eWZMRGZNZnJZdktYaDRKWFMxTEVJMmNDcXUxdjVXYW4=',
|
||||||
beta_profile: `${domain.api_beta}/accounts/v1/me/profile`,
|
beta_profile: `${domain.api_beta}/accounts/v1/me/profile`,
|
||||||
beta_cmsToken: `${domain.api_beta}/index/v2`,
|
beta_cmsToken: `${domain.api_beta}/index/v2`,
|
||||||
|
|
@ -107,6 +107,7 @@ api.crunchyAuthHeader = {
|
||||||
|
|
||||||
api.crunchyAuthHeaderMob = {
|
api.crunchyAuthHeaderMob = {
|
||||||
Authorization: api.authBasicMob,
|
Authorization: api.authBasicMob,
|
||||||
|
'user-agent': 'Crunchyroll/3.60.0 Android/9 okhttp/4.12.0'
|
||||||
};
|
};
|
||||||
|
|
||||||
api.crunchyAuthHeaderSwitch = {
|
api.crunchyAuthHeaderSwitch = {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "multi-downloader-nx",
|
"name": "multi-downloader-nx",
|
||||||
"short_name": "aniDL",
|
"short_name": "aniDL",
|
||||||
"version": "5.1.0",
|
"version": "5.1.1",
|
||||||
"description": "Downloader for Crunchyroll, Hidive, AnimeOnegai, and AnimationDigitalNetwork with CLI and GUI",
|
"description": "Downloader for Crunchyroll, Hidive, AnimeOnegai, and AnimationDigitalNetwork with CLI and GUI",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"download",
|
"download",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue