summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-10 19:53:09 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-10 19:53:09 +0100
commitaac6063859b9036612e86fb4029dc010d5c5d1e0 (patch)
treeb29d1243838f3e5aca90f11181ee25defce5702a /module/plugins/internal
parent[MultiHoster] Use content-disposition (diff)
downloadpyload-aac6063859b9036612e86fb4029dc010d5c5d1e0.tar.xz
Code cosmetics
Diffstat (limited to 'module/plugins/internal')
-rw-r--r--module/plugins/internal/MultiHook.py2
-rw-r--r--module/plugins/internal/MultiHoster.py4
-rw-r--r--module/plugins/internal/XFSAccount.py4
3 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/internal/MultiHook.py b/module/plugins/internal/MultiHook.py
index ac53c0c9c..8bf72f21b 100644
--- a/module/plugins/internal/MultiHook.py
+++ b/module/plugins/internal/MultiHook.py
@@ -285,7 +285,7 @@ class MultiHook(Hook):
else:
retries = max(self.getConfig("retry", 10), 0)
wait_time = max(self.getConfig("retryinterval", 1), 0)
-
+
if 0 < retries > pyfile.plugin.retries:
pyfile.plugin.retries += 1
pyfile.plugin.setCustomStatus("MultiHook", "queued")
diff --git a/module/plugins/internal/MultiHoster.py b/module/plugins/internal/MultiHoster.py
index eca7e9ecd..8ca4d427f 100644
--- a/module/plugins/internal/MultiHoster.py
+++ b/module/plugins/internal/MultiHoster.py
@@ -76,13 +76,13 @@ class MultiHoster(SimpleHoster):
self.downloadLink(self.link)
self.checkFile()
-
+
#@TODO: Remove in 0.4.10
def downloadLink(self, link):
if link and isinstance(link, basestring):
self.correctCaptcha()
self.download(link, disposition=True)
-
+
def handlePremium(self, pyfile):
return self.handleFree(pyfile)
diff --git a/module/plugins/internal/XFSAccount.py b/module/plugins/internal/XFSAccount.py
index a767a878f..c350729ac 100644
--- a/module/plugins/internal/XFSAccount.py
+++ b/module/plugins/internal/XFSAccount.py
@@ -12,7 +12,7 @@ from module.plugins.internal.SimpleHoster import parseHtmlForm, set_cookies
class XFSAccount(Account):
__name__ = "XFSAccount"
__type__ = "account"
- __version__ = "0.34"
+ __version__ = "0.35"
__description__ = """XFileSharing account plugin"""
__license__ = "GPLv3"
@@ -48,7 +48,7 @@ class XFSAccount(Account):
self.logError(_("Missing HOSTER_DOMAIN"))
if not self.HOSTER_URL:
- self.HOSTER_URL = "http://www.%s/" % self.HOSTER_DOMAIN or ""
+ self.HOSTER_URL = "http://www.%s/" % (self.HOSTER_DOMAIN or "")
def loadAccountInfo(self, user, req):