From 50c731a306f8d85aa1775c7867e945ecd138d8f6 Mon Sep 17 00:00:00 2001 From: zoidberg10 Date: Fri, 27 Jul 2012 01:03:51 +0200 Subject: expertdecoders.com captcha solving --- module/plugins/hoster/UlozTo.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'module/plugins/hoster/UlozTo.py') diff --git a/module/plugins/hoster/UlozTo.py b/module/plugins/hoster/UlozTo.py index e4d9766d7..5344ee09c 100644 --- a/module/plugins/hoster/UlozTo.py +++ b/module/plugins/hoster/UlozTo.py @@ -27,12 +27,12 @@ class UlozTo(SimpleHoster): __name__ = "UlozTo" __type__ = "hoster" __pattern__ = r"http://(\w*\.)?(uloz\.to|ulozto\.(cz|sk|net)|bagruj.cz|zachowajto.pl)/(?:live/)?(?P\w+/[^/?]*)" - __version__ = "0.88" + __version__ = "0.89" __description__ = """uloz.to""" __author_name__ = ("zoidberg") FILE_NAME_PATTERN = r'(?P[^<]+)' - FILE_SIZE_PATTERN = r'(?P[^<]+)' + FILE_SIZE_PATTERN = r'.*?(?P[0-9.]+\s[kMG]B)' FILE_INFO_PATTERN = r'

File (?P[^<]+) is password protected

' FILE_OFFLINE_PATTERN = r'404 - Page not found|

File (has been deleted|was banned)

' FILE_SIZE_REPLACEMENTS = [('([0-9.]+)\s([kMG])B', convertDecimalPrefix)] @@ -132,7 +132,7 @@ class UlozTo(SimpleHoster): "wrong_captcha": re.compile(r'
    \s*
  • Error rewriting the text.
  • '), "offline": re.compile(self.FILE_OFFLINE_PATTERN), "passwd": self.PASSWD_PATTERN, - "paralell_dl": "Uloz.to - Již stahuješ", + "server_error": "Ulo[zž].to - ([^<]+)", #paralell dl, server overload etc. "not_found": "Ulož.to" }) @@ -145,7 +145,8 @@ class UlozTo(SimpleHoster): self.offline() elif check == "passwd": self.fail("Wrong password") - elif check == "paralell_dl": + elif check == "server_error": + self.logError("Server error: %s" % self.lastCheck.group(1)) self.multiDL = False self.setWait(300, True) self.wait() -- cgit v1.2.3