mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-04-21 16:31:55 +00:00
Fix prettier formatting for crunchy.ts
This commit is contained in:
parent
9ed405f584
commit
33cf257a7f
1 changed files with 4 additions and 4 deletions
|
|
@ -425,7 +425,7 @@ export default class Crunchy implements ServiceClass {
|
||||||
}
|
}
|
||||||
this.token = await authReq.res.json();
|
this.token = await authReq.res.json();
|
||||||
this.token.device_id = uuid;
|
this.token.device_id = uuid;
|
||||||
this.token.expires = new Date(Date.now() + this.token.expires_in * 1000);
|
this.token.expires = new Date(Date.now() + this.token.expires_in * 1000);
|
||||||
yamlCfg.saveCRToken(this.token);
|
yamlCfg.saveCRToken(this.token);
|
||||||
await this.getProfile();
|
await this.getProfile();
|
||||||
console.info('Your Country: %s', this.token.country);
|
console.info('Your Country: %s', this.token.country);
|
||||||
|
|
@ -464,7 +464,7 @@ export default class Crunchy implements ServiceClass {
|
||||||
}
|
}
|
||||||
this.token = await authReq.res.json();
|
this.token = await authReq.res.json();
|
||||||
this.token.device_id = uuid;
|
this.token.device_id = uuid;
|
||||||
this.token.expires = new Date(Date.now() + this.token.expires_in * 1000);
|
this.token.expires = new Date(Date.now() + this.token.expires_in * 1000);
|
||||||
yamlCfg.saveCRToken(this.token);
|
yamlCfg.saveCRToken(this.token);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -535,7 +535,7 @@ export default class Crunchy implements ServiceClass {
|
||||||
}
|
}
|
||||||
this.token = await authReq.res.json();
|
this.token = await authReq.res.json();
|
||||||
this.token.device_id = uuid;
|
this.token.device_id = uuid;
|
||||||
this.token.expires = new Date(Date.now() + this.token.expires_in * 1000);
|
this.token.expires = new Date(Date.now() + this.token.expires_in * 1000);
|
||||||
yamlCfg.saveCRToken(this.token);
|
yamlCfg.saveCRToken(this.token);
|
||||||
await this.getProfile(false);
|
await this.getProfile(false);
|
||||||
await this.getCMStoken(true);
|
await this.getCMStoken(true);
|
||||||
|
|
@ -586,7 +586,7 @@ export default class Crunchy implements ServiceClass {
|
||||||
}
|
}
|
||||||
this.token = await authReq.res.json();
|
this.token = await authReq.res.json();
|
||||||
this.token.device_id = uuid;
|
this.token.device_id = uuid;
|
||||||
this.token.expires = new Date(Date.now() + this.token.expires_in * 1000);
|
this.token.expires = new Date(Date.now() + this.token.expires_in * 1000);
|
||||||
yamlCfg.saveCRToken(this.token);
|
yamlCfg.saveCRToken(this.token);
|
||||||
}
|
}
|
||||||
if (this.token.refresh_token) {
|
if (this.token.refresh_token) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue