From 041bd501fcacdd5de4a26069a68c34bf30e7ad62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 19 Nov 2018 21:43:00 +0100 Subject: [PATCH] [hentaifoundry] unescape YII_CSRF_TOKEN value This fixes the POST requests to /site/filters --- gallery_dl/extractor/hentaifoundry.py | 4 ++-- test/test_results.py | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/gallery_dl/extractor/hentaifoundry.py b/gallery_dl/extractor/hentaifoundry.py index e080df17..14c68dda 100644 --- a/gallery_dl/extractor/hentaifoundry.py +++ b/gallery_dl/extractor/hentaifoundry.py @@ -86,8 +86,8 @@ class HentaifoundryExtractor(Extractor): def set_filters(self): """Set site-internal filters to show all images""" - token = text.extract( - self.session.cookies["YII_CSRF_TOKEN"], "%22", "%22")[0] + token = text.unquote(text.extract( + self.session.cookies["YII_CSRF_TOKEN"], "%22", "%22")[0]) data = { "YII_CSRF_TOKEN": token, "rating_nudity": 3, diff --git a/test/test_results.py b/test/test_results.py index fa4cac08..b4b11da6 100644 --- a/test/test_results.py +++ b/test/test_results.py @@ -24,8 +24,6 @@ TRAVIS_SKIP = { # temporary issues, etc. BROKEN = { "deviantart", - "dokireader", - "hentaifoundry", }