summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/SimpleHoster.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-09 03:25:42 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-09 03:25:42 +0100
commitea2d07843d369d8b8fd2aa02930bf549ce94a661 (patch)
treed74957918b4741e3a31c4ba007b23324e16bd53a /module/plugins/internal/SimpleHoster.py
parent[SimpleHoster] Better checkDownload rules (diff)
downloadpyload-ea2d07843d369d8b8fd2aa02930bf549ce94a661.tar.xz
Spare fixes
Diffstat (limited to 'module/plugins/internal/SimpleHoster.py')
-rw-r--r--module/plugins/internal/SimpleHoster.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py
index 5450f2bc9..2a6624e10 100644
--- a/module/plugins/internal/SimpleHoster.py
+++ b/module/plugins/internal/SimpleHoster.py
@@ -261,7 +261,7 @@ class SimpleHoster(Hoster):
def apiInfo(cls, url="", get={}, post={}):
url = unquote(url)
return {'name' : (urlparse(url).path.split('/')[-1]
- or urlparse(url).query.split('&', 1)[0].split('=', 1)[1]
+ or urlparse(url).query.split('=', 1)[::-1][0].split('&', 1)[0]
or _("Unknown")),
'size' : 0,
'status': 3,
@@ -417,11 +417,11 @@ class SimpleHoster(Hoster):
if self.premium and (not self.CHECK_TRAFFIC or self.checkTrafficLeft()):
self.logDebug("Handled as premium download")
- self.handlePremium()
+ self.handlePremium(pyfile)
elif not self.LOGIN_ACCOUNT or (not self.CHECK_TRAFFIC or self.checkTrafficLeft()):
self.logDebug("Handled as free download")
- self.handleFree()
+ self.handleFree(pyfile)
self.downloadLink(self.link)
self.checkFile()
@@ -430,7 +430,7 @@ class SimpleHoster(Hoster):
def downloadLink(self, link):
if link and isinstance(link, basestring):
self.correctCaptcha()
- self.download(link, disposition=True)
+ self.download(link, disposition=False) #@TODO: Set `disposition=True` in 0.4.10
def checkFile(self):
@@ -579,7 +579,7 @@ class SimpleHoster(Hoster):
if not hasattr(self, 'LINK_PREMIUM_PATTERN'):
self.logError(_("Premium download not implemented"))
self.logDebug("Handled as free download")
- self.handleFree()
+ self.handleFree(pyfile)
try:
m = re.search(self.LINK_PREMIUM_PATTERN, self.html)