summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-28 01:05:27 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-28 01:05:27 +0100
commit388c894716e670e89b88b0b05f99d902d0bc054d (patch)
tree0a7e17704dfa57ff4d03492ecf9f81fba794eb8e
parent[ShareonlineBiz] Account fixup (2) (diff)
downloadpyload-388c894716e670e89b88b0b05f99d902d0bc054d.tar.xz
[MultiHoster] Filename recognition
-rw-r--r--module/plugins/internal/MultiHoster.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/module/plugins/internal/MultiHoster.py b/module/plugins/internal/MultiHoster.py
index 9d218c3b2..8cdb2fbff 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.26"
+ __version__ = "0.27"
__pattern__ = r'^unmatchable$'
@@ -54,13 +54,17 @@ class MultiHoster(SimpleHoster):
self.logDebug("Looking for direct download link...")
self.handleDirect()
- if not self.link and not self.lastDownload:
+ if self.link:
+ self.pyfile.url = self.link
+ self.checkNameSize()
+
+ elif not self.lastDownload:
self.preload()
+ self.checkInfo()
if self.premium and (not self.CHECK_TRAFFIC or self.checkTrafficLeft()):
self.logDebug("Handled as premium download")
self.handlePremium()
-
else:
self.logDebug("Handled as free download")
self.handleFree()