From fcaf6c9e4c5c618b8c2741ca7ee5676787b4c3f0 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 31 Mar 2015 23:58:33 +0200 Subject: Temp fixup to `filename*=UTF-8` bug --- module/plugins/hoster/UlozTo.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'module/plugins/hoster/UlozTo.py') 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\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'
' PASSWD_PATTERN = r'
' @@ -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: -- cgit v1.2.3