From 9d9618ab35071f36840fe51e63fe2f887131dc5a Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 18 Oct 2015 19:14:29 +0200 Subject: Update hosters --- module/plugins/hoster/EuroshareEu.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'module/plugins/hoster/EuroshareEu.py') diff --git a/module/plugins/hoster/EuroshareEu.py b/module/plugins/hoster/EuroshareEu.py index 7ec6dc428..be5c0480f 100644 --- a/module/plugins/hoster/EuroshareEu.py +++ b/module/plugins/hoster/EuroshareEu.py @@ -22,7 +22,7 @@ class EuroshareEu(SimpleHoster): NAME_PATTERN = r'

(?P.+?)

' SIZE_PATTERN = r'

.*\| (?P.+?) (?P.+?)

' - + OFFLINE_PATTERN = ur'

S.bor sa nena.iel

|Požadovaná stránka neexistuje!' LINK_FREE_PATTERN = r'onclick="return checkLoad\(\);" href="(.+?)" class="tlacitko velky"' @@ -40,8 +40,10 @@ class EuroshareEu(SimpleHoster): self.link = pyfile.url.rstrip('/') + "/download/" - check = self.check_file({'login': re.compile(self.ERROR_PATTERN), - 'json' : re.compile(r'\{"status":"error".*?"message":"(.*?)"')}) + check = self.check_file({ + 'login': re.compile(self.ERROR_PATTERN), + 'json' : re.compile(r'\{"status":"error".*?"message":"(.*?)"') + }) if check == "login" or (check == "json" and self.last_check.group(1) == "Access token expired"): self.account.relogin() -- cgit v1.2.3