summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/BasePlugin.py
diff options
context:
space:
mode:
authorGravatar zoidberg10 <zoidberg@mujmail.cz> 2012-09-25 19:07:51 +0200
committerGravatar zoidberg10 <zoidberg@mujmail.cz> 2012-09-25 19:07:51 +0200
commit233bf90feb2941ecacee56966fdee2cd2f65d7b2 (patch)
tree503535952b2de69ebfde0c34cd5b95b5e03f4c5c /module/plugins/hoster/BasePlugin.py
parentmultihosters - closed #618, store http/ftp accounts, add uptobox.com premium (diff)
downloadpyload-233bf90feb2941ecacee56966fdee2cd2f65d7b2.tar.xz
small plugin fixes
Diffstat (limited to 'module/plugins/hoster/BasePlugin.py')
-rw-r--r--module/plugins/hoster/BasePlugin.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/module/plugins/hoster/BasePlugin.py b/module/plugins/hoster/BasePlugin.py
index 14dfbba62..7d6990c8b 100644
--- a/module/plugins/hoster/BasePlugin.py
+++ b/module/plugins/hoster/BasePlugin.py
@@ -55,7 +55,7 @@ class BasePlugin(Hoster):
self.logDebug("Logging on to %s" % server)
self.req.addAuth(self.account.accounts[server]["password"])
else:
- for pwd in pyfile.package().password.splitlines()
+ for pwd in pyfile.package().password.splitlines():
if ":" in pwd:
self.req.addAuth(pwd.strip())
break
@@ -74,7 +74,7 @@ class BasePlugin(Hoster):
url = pyfile.url
for i in range(5):
- header = self.load(pyfile.url, just_header = True)
+ header = self.load(url, just_header = True)
# self.load does not raise a BadHeader on 404 responses, do it here
if header.has_key('code') and header['code'] == 404:
@@ -83,7 +83,6 @@ class BasePlugin(Hoster):
if 'location' in header:
self.logDebug("Location: " + header['location'])
url = unquote(header['location'])
- self.logDebug("URL: %s" % url, html_unescape(unquote(urlparse(url).path.split("/")[-1])))
else:
break