diff options
Diffstat (limited to 'pyload/plugin/hoster/UpleaCom.py')
-rw-r--r-- | pyload/plugin/hoster/UpleaCom.py | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/pyload/plugin/hoster/UpleaCom.py b/pyload/plugin/hoster/UpleaCom.py index 46462e94a..fe2aa036e 100644 --- a/pyload/plugin/hoster/UpleaCom.py +++ b/pyload/plugin/hoster/UpleaCom.py @@ -10,24 +10,31 @@ from pyload.plugin.internal.XFSHoster import XFSHoster class UpleaCom(XFSHoster): __name = "UpleaCom" __type = "hoster" - __version = "0.06" + __version = "0.10" __pattern = r'https?://(?:www\.)?uplea\.com/dl/\w{15}' __description = """Uplea.com hoster plugin""" __license = "GPLv3" - __authors = [("Redleon", "")] + __authors = [("Redleon", None), + ("GammaC0de", None)] - NAME_PATTERN = r'class="agmd size18">(?P<N>.+?)<' - SIZE_PATTERN = r'size14">(?P<S>[\d.,]+) (?P<U>[\w^_])</span>' + DISPOSITION = False #@TODO: Remove in 0.4.10 + HOSTER_DOMAIN = "uplea.com" + + SIZE_REPLACEMENTS = [('ko','KB'), ('mo','MB'), ('go','GB'), ('Ko','KB'), ('Mo','MB'), ('Go','GB')] + + NAME_PATTERN = r'<span class="gold-text">(?P<N>.+?)</span>' + SIZE_PATTERN = r'<span class="label label-info agmd">(?P<S>[\d.,]+) (?P<U>[\w^_]+?)</span>' OFFLINE_PATTERN = r'>You followed an invalid or expired link' - LINK_PATTERN = r'"(http?://\w+\.uplea\.com/anonym/.*?)"' + LINK_PATTERN = r'"(https?://\w+\.uplea\.com/anonym/.*?)"' - WAIT_PATTERN = r'timeText:([\d.]+),' - STEP_PATTERN = r'<a href="(/step/.+)">' + PREMIUM_ONLY_PATTERN = r'You need to have a Premium subscription to download this file' + WAIT_PATTERN = r'timeText: ?([\d.]+),' + STEP_PATTERN = r'<a href="(/step/.+)">' def setup(self): @@ -45,6 +52,7 @@ class UpleaCom(XFSHoster): m = re.search(self.WAIT_PATTERN, self.html) if m: + self.logDebug(_("Waiting %s seconds") % m.group(1)) self.wait(m.group(1), True) self.retry() |