diff options
author | 2015-03-31 23:58:33 +0200 | |
---|---|---|
committer | 2015-03-31 23:58:33 +0200 | |
commit | fcaf6c9e4c5c618b8c2741ca7ee5676787b4c3f0 (patch) | |
tree | 4f325a9b18d2a5a7d8670c068c7bae1977be6d5d /module/plugins/hoster/UlozTo.py | |
parent | [TusfilesNet] Fix downloadLink (diff) | |
download | pyload-fcaf6c9e4c5c618b8c2741ca7ee5676787b4c3f0.tar.xz |
Temp fixup to `filename*=UTF-8` bug
Diffstat (limited to 'module/plugins/hoster/UlozTo.py')
-rw-r--r-- | module/plugins/hoster/UlozTo.py | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/module/plugins/hoster/UlozTo.py b/module/plugins/hoster/UlozTo.py index c6dcec2cf..c48873387 100644 --- a/module/plugins/hoster/UlozTo.py +++ b/module/plugins/hoster/UlozTo.py @@ -15,7 +15,7 @@ def convertDecimalPrefix(m): class UlozTo(SimpleHoster): __name__ = "UlozTo" __type__ = "hoster" - __version__ = "1.07" + __version__ = "1.08" __pattern__ = r'http://(?:www\.)?(uloz\.to|ulozto\.(cz|sk|net)|bagruj\.cz|zachowajto\.pl)/(?:live/)?(?P<ID>\w+/[^/?]*)' __config__ = [("use_premium", "bool", "Use premium account if available", True)] @@ -34,7 +34,6 @@ class UlozTo(SimpleHoster): SIZE_REPLACEMENTS = [(r'([\d.]+)\s([kMG])B', convertDecimalPrefix)] CHECK_TRAFFIC = True - DISPOSITION = False #: Remove in 0.4.10 ADULT_PATTERN = r'<form action="(.+?)" method="post" id="frm-askAgeForm">' PASSWD_PATTERN = r'<div class="passwordProtectedFile">' @@ -48,16 +47,6 @@ class UlozTo(SimpleHoster): self.resumeDownload = True - #@NOTE: Temp work-around to `Content-Disposition=filename*=UTF-8` bug! - def handleDirect(self, pyfile): - self.link = self.directLink(pyfile.url, self.resumeDownload) - - if self.link: - remote = urllib2.urlopen(self.link) - name = remote.info()['Content-Disposition'].split(';') - pyfile.name = name[1].split('filename=')[1][1:-1] - - def handleFree(self, pyfile): action, inputs = self.parseHtmlForm('id="frm-downloadDialog-freeDownloadForm"') if not action or not inputs: |