summaryrefslogtreecommitdiffstats
path: root/module/plugins/Plugin.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-04 14:48:16 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-04 14:48:16 +0200
commitdbc8882221eaca029994ec6c4483ab157cae9c11 (patch)
treebd897a4d5ec075536cfdbeec487b1b6286a438e7 /module/plugins/Plugin.py
parentclosed #142 (diff)
downloadpyload-dbc8882221eaca029994ec6c4483ab157cae9c11.tar.xz
closed #116
Diffstat (limited to 'module/plugins/Plugin.py')
-rw-r--r--module/plugins/Plugin.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py
index e34543100..04df13978 100644
--- a/module/plugins/Plugin.py
+++ b/module/plugins/Plugin.py
@@ -136,8 +136,10 @@ class Plugin(object):
raise NotImplementedError
def resetAccount(self):
+ """ dont use account and retry download """
self.account = None
self.req = self.core.requestFactory.getRequest(self.__name__)
+ self.retry()
def checksum(self, local_file=None):
"""
@@ -343,9 +345,3 @@ class Plugin(object):
if delete:
remove(self.lastDownload)
return name
-
- def resetAccount(self):
- """ invalidates an account, so it will not be used """
- if self.account:
- data = self.account.getAccountData(self.user)
- data["valid"] = False