summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/EuroshareEu.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/EuroshareEu.py')
-rw-r--r--module/plugins/hoster/EuroshareEu.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/module/plugins/hoster/EuroshareEu.py b/module/plugins/hoster/EuroshareEu.py
index 7ec6dc428..31044919a 100644
--- a/module/plugins/hoster/EuroshareEu.py
+++ b/module/plugins/hoster/EuroshareEu.py
@@ -8,7 +8,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class EuroshareEu(SimpleHoster):
__name__ = "EuroshareEu"
__type__ = "hoster"
- __version__ = "0.34"
+ __version__ = "0.35"
__status__ = "testing"
__pattern__ = r'http://(?:www\.)?euroshare\.(eu|sk|cz|hu|pl)/file/.+'
@@ -22,7 +22,7 @@ class EuroshareEu(SimpleHoster):
NAME_PATTERN = r'<h1 class="nazev-souboru">(?P<N>.+?)</h1>'
SIZE_PATTERN = r'<p class="posledni vpravo">.*\| (?P<S>.+?) (?P<U>.+?)</p>'
-
+
OFFLINE_PATTERN = ur'<h2>S.bor sa nena.iel</h2>|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()