From 48a58ffca6b5db6ad835dcb8457a73106e247dd4 Mon Sep 17 00:00:00 2001 From: ronserruya Date: Wed, 31 Jul 2019 14:26:13 +0300 Subject: [PATCH] Fix login issue --- src/my_request.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/my_request.ts b/src/my_request.ts index 017fcb2..545b256 100644 --- a/src/my_request.ts +++ b/src/my_request.ts @@ -360,7 +360,7 @@ function authenticate(config: IConfig, done: (err: Error) => void) /* First get https://www.crunchyroll.com/login to get the login token */ const options = { - jar: j, + //jar: j, uri: 'https://www.crunchyroll.com/login' }; @@ -392,7 +392,7 @@ function authenticate(config: IConfig, done: (err: Error) => void) 'login_form[redirect_url]': '/', 'login_form[_token]': token }, - jar: j, + //jar: j, url: 'https://www.crunchyroll.com/login' };