summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-02 02:50:07 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-02 02:50:07 +0100
commitf1d3c4cdd0a983087648a2524b5e13b263ef5a71 (patch)
tree0c196970a3817fa14e36bc132bafa821e112ac45 /module/plugins/hoster
parentCode cosmetics (diff)
downloadpyload-f1d3c4cdd0a983087648a2524b5e13b263ef5a71.tar.xz
[MultishareCz] Parse download content-disposition
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/MultishareCz.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/module/plugins/hoster/MultishareCz.py b/module/plugins/hoster/MultishareCz.py
index af09581c8..ee84f613f 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.37"
+ __version__ = "0.38"
__pattern__ = r'http://(?:www\.)?multishare\.cz/stahnout/(?P<ID>\d+)'
@@ -47,13 +47,11 @@ class MultishareCz(SimpleHoster):
if not self.checkCredit():
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": pyfile.url}
-
- self.logDebug(url, params)
-
- self.link = True
- self.download(url, get=params)
+ self.download("http://dl%d.mms.multishare.cz/html/mms_process.php" % round(random() * 10000 * random()),
+ get={'u_ID' : self.acc_info['u_ID'],
+ 'u_hash': self.acc_info['u_hash'],
+ 'link' : pyfile.url},
+ disposition=True)
def checkCredit(self):