summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/Account.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-08-02 07:15:28 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-08-02 07:15:28 +0200
commit21cf50c60a794b5ca7d54408b590f74d4567ca79 (patch)
tree0d5917331b67a52e4bc27f8fc7c024d02de6b1ee /module/plugins/internal/Account.py
parentFix https://github.com/pyload/pyload/issues/1646 (diff)
downloadpyload-21cf50c60a794b5ca7d54408b590f74d4567ca79.tar.xz
Update some plugins
Diffstat (limited to 'module/plugins/internal/Account.py')
-rw-r--r--module/plugins/internal/Account.py15
1 files changed, 4 insertions, 11 deletions
diff --git a/module/plugins/internal/Account.py b/module/plugins/internal/Account.py
index a402c4ad7..021dedf60 100644
--- a/module/plugins/internal/Account.py
+++ b/module/plugins/internal/Account.py
@@ -13,7 +13,7 @@ from module.utils import compare_time, lock, parseFileSize as parse_size
class Account(Plugin):
__name__ = "Account"
__type__ = "account"
- __version__ = "0.12"
+ __version__ = "0.13"
__status__ = "testing"
__description__ = """Base account plugin"""
@@ -73,7 +73,7 @@ class Account(Plugin):
self.accounts[user]['valid'] = True #@TODO: Remove in 0.4.10
finally:
- self.del_request()
+ self.clean()
return res
@@ -84,7 +84,7 @@ class Account(Plugin):
req = self.get_request(user)
if req:
req.clearCookies()
- self.del_request()
+ self.clean()
if user in self.info:
self.info[user]['login'].clear()
@@ -254,7 +254,7 @@ class Account(Plugin):
traceback.print_exc()
finally:
- self.del_request()
+ self.clean()
self.info[user].update(info)
return info
@@ -288,13 +288,6 @@ class Account(Plugin):
return self.pyload.requestFactory.getRequest(self.__name__, user)
- def del_request(self):
- try:
- self.req.close()
- finally:
- self.req = None
-
-
def get_cookies(self, user=None):
if not user:
user, info = self.select()