diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-02-26 18:16:52 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-02-26 18:16:52 +0100 |
commit | 5eb0ada8b38224d274d3106ca7eadde3a7d787cd (patch) | |
tree | 8d620af2a75545959dc7df7f2694ad6ff4f6271f | |
parent | cleaned Dailymotion plugin (diff) | |
parent | Use 'Content-Disposition:' as filename of downloaded file (diff) | |
download | pyload-5eb0ada8b38224d274d3106ca7eadde3a7d787cd.tar.xz |
Merge pull request #17 from kmarty/stable
Use 'Content-Disposition:' as filename of downloaded file
-rw-r--r-- | module/plugins/hoster/UlozTo.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/UlozTo.py b/module/plugins/hoster/UlozTo.py index cf2f09311..d46b303f4 100644 --- a/module/plugins/hoster/UlozTo.py +++ b/module/plugins/hoster/UlozTo.py @@ -27,7 +27,7 @@ class UlozTo(SimpleHoster): __name__ = "UlozTo" __type__ = "hoster" __pattern__ = r"http://(\w*\.)?(uloz\.to|ulozto\.(cz|sk|net)|bagruj.cz|zachowajto.pl)/(?:live/)?(?P<id>\w+/[^/?]*)" - __version__ = "0.89" + __version__ = "0.90" __description__ = """uloz.to""" __author_name__ = ("zoidberg") @@ -112,10 +112,10 @@ class UlozTo(SimpleHoster): inputs.update({captcha_id_field: captcha_id, captcha_text_field: captcha_text}) - self.download("http://www.ulozto.net" + action, post=inputs, cookies=True) + self.download("http://www.ulozto.net" + action, post=inputs, cookies=True, disposition=True) def handlePremium(self): - self.download(self.pyfile.url + "?do=directDownload") + self.download(self.pyfile.url + "?do=directDownload", disposition=True) #parsed_url = self.findDownloadURL(premium=True) #self.download(parsed_url, post={"download": "Download"}) @@ -154,4 +154,4 @@ class UlozTo(SimpleHoster): elif check == "not_found": self.fail("Server error - file not downloadable") -getInfo = create_getInfo(UlozTo)
\ No newline at end of file +getInfo = create_getInfo(UlozTo) |