From 99137f1bee49971da77ba16d9f0926053c3f82cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Fri, 14 Sep 2018 17:52:58 +0200 Subject: [PATCH] [sankaku] send login info as formdata Previously they were erroneously send as URL parameters. --- gallery_dl/extractor/sankaku.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gallery_dl/extractor/sankaku.py b/gallery_dl/extractor/sankaku.py index e32869af..e8b55396 100644 --- a/gallery_dl/extractor/sankaku.py +++ b/gallery_dl/extractor/sankaku.py @@ -130,14 +130,14 @@ class SankakuExtractor(SharedConfigExtractor): """Actual login implementation""" username = usertuple[0] self.log.info("Logging in as %s", username) - params = { + data = { "url": "", "user[name]": username, "user[password]": password, "commit": "Login", } response = self.request(self.root + "/user/authenticate", - method="POST", params=params) + method="POST", data=data) if not response.history or response.url != self.root + "/user/home": raise exception.AuthenticationError() cookies = response.history[0].cookies