From 6cbb078392117d132be96f57e3923ef2d99e38dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sun, 26 Mar 2017 20:53:56 +0200 Subject: [PATCH] [batoto] fix cache time for login sessions from 1 year to 1 week ... --- gallery_dl/extractor/batoto.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gallery_dl/extractor/batoto.py b/gallery_dl/extractor/batoto.py index 0597628f..98ec5a23 100644 --- a/gallery_dl/extractor/batoto.py +++ b/gallery_dl/extractor/batoto.py @@ -23,13 +23,13 @@ class BatotoExtractor(Extractor): """Login and set necessary cookies""" username = config.interpolate(("extractor", "batoto", "username")) password = config.interpolate(("extractor", "batoto", "password")) - if username and password: + if username: cookies = self._login_impl(username, password) for key, value in cookies.items(): self.session.cookies.set( key, value, domain=".bato.to", path="/") - @cache(maxage=360*24*60*60, keyarg=1) + @cache(maxage=7*24*60*60, keyarg=1) def _login_impl(self, username, password): """Actual login implementation""" self.log.info("Logging in as %s", username)