Remove non production logs
This commit is contained in:
parent
ca59e3b2fd
commit
b77a35e0e9
@ -368,11 +368,6 @@ function authenticate(config: IConfig, done: (err: Error) => void)
|
|||||||
{
|
{
|
||||||
if (err) return done(err);
|
if (err) return done(err);
|
||||||
|
|
||||||
console.log('------- GET --------');
|
|
||||||
// console.error(err);
|
|
||||||
console.log(body);
|
|
||||||
console.log('------- /GET --------');
|
|
||||||
|
|
||||||
const $ = cheerio.load(body);
|
const $ = cheerio.load(body);
|
||||||
|
|
||||||
/* Get the token from the login page */
|
/* Get the token from the login page */
|
||||||
@ -381,7 +376,7 @@ function authenticate(config: IConfig, done: (err: Error) => void)
|
|||||||
{
|
{
|
||||||
return done(AuthError('Can\'t find token!'));
|
return done(AuthError('Can\'t find token!'));
|
||||||
}
|
}
|
||||||
console.log('Token: ' + token);
|
|
||||||
/* Now call the page again with the token and credentials */
|
/* Now call the page again with the token and credentials */
|
||||||
const options =
|
const options =
|
||||||
{
|
{
|
||||||
@ -396,18 +391,10 @@ function authenticate(config: IConfig, done: (err: Error) => void)
|
|||||||
url: 'https://www.crunchyroll.com/login'
|
url: 'https://www.crunchyroll.com/login'
|
||||||
};
|
};
|
||||||
|
|
||||||
console.info(options);
|
|
||||||
|
|
||||||
cloudscraper.post(options, (err: Error, rep: string, body: string) =>
|
cloudscraper.post(options, (err: Error, rep: string, body: string) =>
|
||||||
{
|
{
|
||||||
console.log('------- POST --------');
|
|
||||||
// console.error(err);
|
|
||||||
console.log(body);
|
|
||||||
console.log('------- /POST --------');
|
|
||||||
|
|
||||||
if (err)
|
if (err)
|
||||||
{
|
{
|
||||||
console.log('------- ERR --------');
|
|
||||||
return done(err);
|
return done(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -416,16 +403,10 @@ function authenticate(config: IConfig, done: (err: Error) => void)
|
|||||||
{
|
{
|
||||||
if (isAuthenticated)
|
if (isAuthenticated)
|
||||||
{
|
{
|
||||||
console.log('------- YES --------');
|
|
||||||
|
|
||||||
return done(null);
|
return done(null);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
console.error(err);
|
|
||||||
console.log('------- WTF --------');
|
|
||||||
|
|
||||||
return done(errCheckAuth2);
|
return done(errCheckAuth2);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user