From 1fe7c828b75e86f9a6a1dcc11f9eb3cadec7d84b Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 30 Mar 2015 01:07:03 +0200 Subject: [UlozTo] Fix https://github.com/pyload/pyload/issues/1300 --- module/plugins/hoster/UlozTo.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'module/plugins/hoster/UlozTo.py') diff --git a/module/plugins/hoster/UlozTo.py b/module/plugins/hoster/UlozTo.py index 3a6e69c45..49ed598cb 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.05" + __version__ = "1.06" __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)] @@ -30,8 +30,8 @@ class UlozTo(SimpleHoster): SIZE_PATTERN = r'.*?(?P[\d.,]+\s[kMG]?B)' OFFLINE_PATTERN = r'404 - Page not found|

File (has been deleted|was banned)

' - URL_REPLACEMENTS = [(r"(?<=http://)([^/]+)", "www.ulozto.net")] - SIZE_REPLACEMENTS = [('([\d.]+)\s([kMG])B', convertDecimalPrefix)] + URL_REPLACEMENTS = [(r'(?<=http://)([^/]+)', "www.ulozto.net")] + SIZE_REPLACEMENTS = [(r'([\d.]+)\s([kMG])B', convertDecimalPrefix)] CHECK_TRAFFIC = True DISPOSITION = False #: Remove in 0.4.10 @@ -44,7 +44,7 @@ class UlozTo(SimpleHoster): def setup(self): self.chunkLimit = 16 if self.premium else 1 - self.multiDL = self.premium + self.multiDL = True self.resumeDownload = True @@ -53,8 +53,8 @@ class UlozTo(SimpleHoster): self.link = self.directLink(pyfile.url, self.resumeDownload) if self.link: - remote = urllib2.urlopen(link) - name = remote.info()['Content-Disposition'].split(';') + remote = urllib2.urlopen(self.link) + name = remote.info()['Content-Disposition'].split(';') pyfile.name = name[1].split('filename=')[1][1:] -- cgit v1.2.3