add login notifications
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user