From f028412f4a9187bc5d3cc8828883077b0fc9c3f3 Mon Sep 17 00:00:00 2001 From: OndrejIT Date: Thu, 2 Jun 2016 20:34:44 +0200 Subject: Add https support for UlozTo hoster. --- module/plugins/hoster/UlozTo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/plugins/hoster/UlozTo.py b/module/plugins/hoster/UlozTo.py index ff64d2abd..de6efde27 100644 --- a/module/plugins/hoster/UlozTo.py +++ b/module/plugins/hoster/UlozTo.py @@ -14,10 +14,10 @@ def convert_decimal_prefix(m): class UlozTo(SimpleHoster): __name__ = "UlozTo" __type__ = "hoster" - __version__ = "1.32" + __version__ = "1.33" __status__ = "testing" - __pattern__ = r'http://(?:www\.)?(uloz\.to|ulozto\.(cz|sk|net)|bagruj\.cz|zachowajto\.pl|pornfile\.cz)/(?:live/)?(?P\w+/[^/?]*)' + __pattern__ = r'http(s)?://(?:www\.)?(uloz\.to|ulozto\.(cz|sk|net)|bagruj\.cz|zachowajto\.pl|pornfile\.cz)/(?:live/)?(?P\w+/[^/?]*)' __config__ = [("activated" , "bool", "Activated" , True), -- cgit v1.2.3 From 646732e66f92ba5de33f824eb482dcd218fb1df4 Mon Sep 17 00:00:00 2001 From: OndrejIT Date: Tue, 7 Jun 2016 11:08:27 +0200 Subject: Fix UlozTo hoster --- module/plugins/hoster/UlozTo.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/module/plugins/hoster/UlozTo.py b/module/plugins/hoster/UlozTo.py index 478758492..0d3739a0a 100644 --- a/module/plugins/hoster/UlozTo.py +++ b/module/plugins/hoster/UlozTo.py @@ -14,7 +14,7 @@ def convert_decimal_prefix(m): class UlozTo(SimpleHoster): __name__ = "UlozTo" __type__ = "hoster" - __version__ = "1.33" + __version__ = "1.34" __status__ = "testing" __pattern__ = r'https?://(?:www\.)?(uloz\.to|ulozto\.(cz|sk|net)|bagruj\.cz|zachowajto\.pl|pornfile\.cz)/(?:live/)?(?P\w+/[^/?]*)' @@ -38,7 +38,9 @@ class UlozTo(SimpleHoster): OFFLINE_PATTERN = r'404 - Page not found|

File (has been deleted|was banned)

' URL_REPLACEMENTS = [(r'(?<=http://)([^/]+)', "www.ulozto.net"), - ("http://", "https://")] + ("http://", "https://"), + (r'(uloz\.to|ulozto\.(cz|sk|net)|bagruj\.cz|zachowajto\.pl|pornfile\.cz)', "ulozto.net")] + SIZE_REPLACEMENTS = [(r'([\d.]+)\s([kMG])B', convert_decimal_prefix)] CHECK_TRAFFIC = True @@ -152,7 +154,7 @@ class UlozTo(SimpleHoster): 'wrong_captcha': ">An error ocurred while verifying the user", 'offline' : re.compile(self.OFFLINE_PATTERN), 'passwd' : self.PASSWD_PATTERN, - 'server_error' : 'src="https://img.ulozto.cz/error403/vykricnik.jpg"', #: Paralell dl, server overload etc. + 'server_error' : "

Z Tvého počítače se již stahuje", #: Paralell dl, server overload etc. 'not_found' : "Ulož.to" }) -- cgit v1.2.3