diff options
Diffstat (limited to 'module')
| -rw-r--r-- | module/plugins/hoster/MultishareCz.py | 8 | ||||
| -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 | 
4 files changed, 14 insertions, 14 deletions
| diff --git a/module/plugins/hoster/MultishareCz.py b/module/plugins/hoster/MultishareCz.py index adbae2da4..af09581c8 100644 --- a/module/plugins/hoster/MultishareCz.py +++ b/module/plugins/hoster/MultishareCz.py @@ -10,7 +10,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo  class MultishareCz(SimpleHoster):      __name__    = "MultishareCz"      __type__    = "hoster" -    __version__ = "0.36" +    __version__ = "0.37"      __pattern__ = r'http://(?:www\.)?multishare\.cz/stahnout/(?P<ID>\d+)' @@ -39,8 +39,8 @@ class MultishareCz(SimpleHoster):          self.download("http://www.multishare.cz/html/download_premium.php?ID=%s" % self.info['pattern']['ID']) -    def handleMulti(self): -        self.html = self.load('http://www.multishare.cz/html/mms_ajax.php', post={"link": self.pyfile.url}, decode=True) +    def handleMulti(self, pyfile): +        self.html = self.load('http://www.multishare.cz/html/mms_ajax.php', post={"link": pyfile.url}, decode=True)          self.checkInfo() @@ -48,7 +48,7 @@ class MultishareCz(SimpleHoster):              self.fail(_("Not enough credit left to download file"))          url    = "http://dl%d.mms.multishare.cz/html/mms_process.php" % round(random() * 10000 * random()) -        params = {"u_ID": self.acc_info['u_ID'], "u_hash": self.acc_info['u_hash'], "link": self.pyfile.url} +        params = {"u_ID": self.acc_info['u_ID'], "u_hash": self.acc_info['u_hash'], "link": pyfile.url}          self.logDebug(url, params) 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) | 
