diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-12-31 00:28:56 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-12-31 00:28:56 +0100 |
commit | d07caf13ccfd9b4ca6066078764f9a9267423ff1 (patch) | |
tree | ca73b68301ef473fe81a6b6bffaa900cf7842759 /module/plugins/internal/SimpleHoster.py | |
parent | [LetitbitNet] Use getURL instead urlopen (diff) | |
download | pyload-d07caf13ccfd9b4ca6066078764f9a9267423ff1.tar.xz |
Handle methods get pyfile argument (2)
Diffstat (limited to 'module/plugins/internal/SimpleHoster.py')
-rw-r--r-- | module/plugins/internal/SimpleHoster.py | 10 |
1 files changed, 5 insertions, 5 deletions
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 |