summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2016-06-07 12:55:56 +0200
committerGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2016-06-07 12:55:56 +0200
commita8077f46015d0e912b90e532c9167eba11d8fb09 (patch)
tree67b6bf2bd771b956c6812715dccd0ef2f3ca45e1
parent[FilerNet] Fix #2489 (diff)
parentFix UlozTo hoster (diff)
downloadpyload-a8077f46015d0e912b90e532c9167eba11d8fb09.tar.xz
Merge pull request #2495 from OndrejIT/stable
Fix UlozTo hoster
-rw-r--r--module/plugins/hoster/UlozTo.py8
1 files 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<ID>\w+/[^/?]*)'
@@ -38,7 +38,9 @@ class UlozTo(SimpleHoster):
OFFLINE_PATTERN = r'<title>404 - Page not found</title>|<h1 class="h1">File (has been deleted|was banned)</h1>'
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' : "<h1>Z Tvého počítače se již stahuje", #: Paralell dl, server overload etc.
'not_found' : "<title>Ulož.to</title>"
})