diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-30 19:09:43 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-30 19:09:43 +0200 |
commit | ba0b5f390d3d5ffec25ba052b5609dbb133bf5c6 (patch) | |
tree | 884bc2f3ad29732f96eb97c0e7f561638a535755 | |
parent | Merge pull request #1386 from GammaC0de/GammaC0de-ContentDisposition-fix (diff) | |
parent | Update UpleaCom.py (diff) | |
download | pyload-ba0b5f390d3d5ffec25ba052b5609dbb133bf5c6.tar.xz |
Merge pull request #1381 from GammaC0de/GammaC0de-UpleaCom-size
[UpleaCom] fix file size calculation and Set DISPOSITION to False (temp)
-rw-r--r-- | module/plugins/hoster/UpleaCom.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/module/plugins/hoster/UpleaCom.py b/module/plugins/hoster/UpleaCom.py index 65e0299ec..608282a60 100644 --- a/module/plugins/hoster/UpleaCom.py +++ b/module/plugins/hoster/UpleaCom.py @@ -10,7 +10,7 @@ from module.plugins.internal.XFSHoster import XFSHoster, create_getInfo class UpleaCom(XFSHoster): __name__ = "UpleaCom" __type__ = "hoster" - __version__ = "0.08" + __version__ = "0.10" __pattern__ = r'https?://(?:www\.)?uplea\.com/dl/\w{15}' @@ -20,9 +20,11 @@ class UpleaCom(XFSHoster): ("GammaC0de", None)] - NAME_PATTERN = r'class="agmd size18">(?P<N>.+?)<' - SIZE_PATTERN = r'size14">(?P<S>[\d.,]+) (?P<U>[\w^_]+?)</span>' - SIZE_REPLACEMENTS = [('Ko','KB'), ('Mo','MB'), ('Go','GB')] + DISPOSITION = False #@TODO: Remove in 0.4.10 + + 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>' + SIZE_REPLACEMENTS = [('ko','KB'), ('mo','MB'), ('go','GB'), ('Ko','KB'), ('Mo','MB'), ('Go','GB')] OFFLINE_PATTERN = r'>You followed an invalid or expired link' PREMIUM_PATTERN = r'You need to have a Premium subscription to download this file' |