diff options
Diffstat (limited to 'module/plugins/internal')
-rw-r--r-- | module/plugins/internal/MultiHoster.py | 4 | ||||
-rw-r--r-- | module/plugins/internal/SimpleHoster.py | 10 | ||||
-rw-r--r-- | module/plugins/internal/XFSHoster.py | 6 |
3 files changed, 10 insertions, 10 deletions
diff --git a/module/plugins/internal/MultiHoster.py b/module/plugins/internal/MultiHoster.py index 810eab4ee..16c32b3ef 100644 --- a/module/plugins/internal/MultiHoster.py +++ b/module/plugins/internal/MultiHoster.py @@ -8,7 +8,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo, r class MultiHoster(SimpleHoster): __name__ = "MultiHoster" __type__ = "hoster" - __version__ = "0.27" + __version__ = "0.28" __pattern__ = r'^unmatchable$' @@ -52,7 +52,7 @@ class MultiHoster(SimpleHoster): if self.directDL: self.logDebug("Looking for direct download link...") - self.handleDirect() + self.handleDirect(pyfile) if self.link: self.pyfile.url = self.link diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py index 2792834f2..7b96205c8 100644 --- a/module/plugins/internal/SimpleHoster.py +++ b/module/plugins/internal/SimpleHoster.py @@ -181,7 +181,7 @@ def secondsToMidnight(gmt=0): class SimpleHoster(Hoster): __name__ = "SimpleHoster" __type__ = "hoster" - __version__ = "0.85" + __version__ = "0.86" __pattern__ = r'^unmatchable$' @@ -392,11 +392,11 @@ class SimpleHoster(Hoster): if self.directDL: self.logDebug("Looking for direct download link...") - self.handleDirect() + self.handleDirect(pyfile) if self.multihost and not self.link and not self.lastDownload: self.logDebug("Looking for leeched download link...") - self.handleMulti() + self.handleMulti(pyfile) if not self.link and not self.lastDownload: self.MULTI_HOSTER = False @@ -534,7 +534,7 @@ class SimpleHoster(Hoster): return self.info - def handleDirect(self, pyfile=None): + def handleDirect(self, pyfile): link = _isDirectLink(self, pyfile.url, self.resumeDownload) if link: @@ -545,7 +545,7 @@ class SimpleHoster(Hoster): self.logDebug("Direct download link not found") - def handleMulti(self, pyfile=None): #: Multi-hoster handler + def handleMulti(self, pyfile): #: Multi-hoster handler pass diff --git a/module/plugins/internal/XFSHoster.py b/module/plugins/internal/XFSHoster.py index 474e2ec10..e15504d16 100644 --- a/module/plugins/internal/XFSHoster.py +++ b/module/plugins/internal/XFSHoster.py @@ -15,7 +15,7 @@ from module.utils import html_unescape class XFSHoster(SimpleHoster): __name__ = "XFSHoster" __type__ = "hoster" - __version__ = "0.33" + __version__ = "0.34" __pattern__ = r'^unmatchable$' @@ -139,7 +139,7 @@ class XFSHoster(SimpleHoster): return m.group(1).strip() #@TODO: Remove .strip() in 0.4.10 - def handleMulti(self, pyfile=None): + def handleMulti(self, pyfile): if not self.account: self.fail(_("Only registered or premium users can use url leech feature")) @@ -152,7 +152,7 @@ class XFSHoster(SimpleHoster): action += upload_id + "&js_on=1&utype=prem&upload_type=url" inputs['tos'] = '1' - inputs['url_mass'] = self.pyfile.url + inputs['url_mass'] = pyfile.url inputs['up1oad_type'] = 'url' self.logDebug(action, inputs) |