summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/MultishareCz.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/MultishareCz.py')
-rw-r--r--module/plugins/hoster/MultishareCz.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/module/plugins/hoster/MultishareCz.py b/module/plugins/hoster/MultishareCz.py
index bbb77f525..6b69fa9c2 100644
--- a/module/plugins/hoster/MultishareCz.py
+++ b/module/plugins/hoster/MultishareCz.py
@@ -9,7 +9,8 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class MultishareCz(SimpleHoster):
__name__ = "MultishareCz"
__type__ = "hoster"
- __version__ = "0.40"
+ __version__ = "0.42"
+ __status__ = "testing"
__pattern__ = r'http://(?:www\.)?multishare\.cz/stahnout/(?P<ID>\d+)'
__config__ = [("use_premium", "bool", "Use premium account if available", True)]
@@ -22,26 +23,26 @@ class MultishareCz(SimpleHoster):
SIZE_REPLACEMENTS = [('&nbsp;', '')]
CHECK_TRAFFIC = True
- MULTI_HOSTER = True
+ LEECH_HOSTER = True
INFO_PATTERN = ur'(?:<li>Název|Soubor): <strong>(?P<N>[^<]+)</strong><(?:/li><li|br)>Velikost: <strong>(?P<S>[^<]+)</strong>'
OFFLINE_PATTERN = ur'<h1>Stáhnout soubor</h1><p><strong>Požadovaný soubor neexistuje.</strong></p>'
- def handleFree(self, pyfile):
+ def handle_free(self, pyfile):
self.download("http://www.multishare.cz/html/download_free.php", get={'ID': self.info['pattern']['ID']})
- def handlePremium(self, pyfile):
+ def handle_premium(self, pyfile):
self.download("http://www.multishare.cz/html/download_premium.php", get={'ID': self.info['pattern']['ID']})
- def handleMulti(self, pyfile):
- self.html = self.load('http://www.multishare.cz/html/mms_ajax.php', post={"link": pyfile.url}, decode=True)
+ def handle_multi(self, pyfile):
+ self.html = self.load('http://www.multishare.cz/html/mms_ajax.php', post={'link': pyfile.url})
- self.checkInfo()
+ self.check_info()
- if not self.checkTrafficLeft():
+ if not self.check_traffic_left():
self.fail(_("Not enough credit left to download file"))
self.download("http://dl%d.mms.multishare.cz/html/mms_process.php" % round(random.random() * 10000 * random.random()),