add login notifications

This commit is contained in:
Mike Fährmann
2017-03-17 09:42:59 +01:00
parent ed94d9b92d
commit 1d46be545c
5 changed files with 15 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2014-2016 Mike Fährmann
# Copyright 2014-2017 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@@ -191,9 +191,10 @@ class ExhentaiGalleryExtractor(Extractor):
self.session.cookies.set(
key, value, domain=".exhentai.org", path="/")
@cache(maxage=360*24*60*60, keyarg=1)
@cache(maxage=90*24*60*60, keyarg=1)
def _login_impl(self, username, password):
"""Actual login implementation"""
self.log.info("Logging in as %s", username)
cnames = ["ipb_member_id", "ipb_pass_hash"]
try: