diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-01-18 19:38:02 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-01-18 19:38:02 +0100 |
commit | 5fef6d42b6df3758be8ceb6320582f96e0d63fe7 (patch) | |
tree | ddeff86effccb8da11656fd4e8edee1ee48a25bf /module | |
parent | [ZeveraCom] Fix handlePremium (diff) | |
download | pyload-5fef6d42b6df3758be8ceb6320582f96e0d63fe7.tar.xz |
[MultiHoster] Code cosmetics
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/internal/MultiHoster.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/module/plugins/internal/MultiHoster.py b/module/plugins/internal/MultiHoster.py index ba613c997..24dcf64c7 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.33" + __version__ = "0.34" __pattern__ = r'^unmatchable$' @@ -40,7 +40,7 @@ class MultiHoster(SimpleHoster): set_cookies(self.req.cj, self.COOKIES) if self.DIRECT_LINK is None: - self.directDL = self.__pattern__ != r'^unmatchable$' + self.directDL = self.__pattern__ != r'^unmatchable$' and re.match(self.__pattern__, self.pyfile.url) else: self.directDL = self.DIRECT_LINK @@ -51,10 +51,8 @@ class MultiHoster(SimpleHoster): def process(self, pyfile): self.prepare() - if self.__pattern__ != r'^unmatchable$' and re.match(self.__pattern__, pyfile.url): - self.checkInfo() - if self.directDL: + self.checkInfo() self.logDebug("Looking for direct download link...") self.handleDirect(pyfile) |