summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-30 19:09:43 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-30 19:09:43 +0200
commitba0b5f390d3d5ffec25ba052b5609dbb133bf5c6 (patch)
tree884bc2f3ad29732f96eb97c0e7f561638a535755
parentMerge pull request #1386 from GammaC0de/GammaC0de-ContentDisposition-fix (diff)
parentUpdate UpleaCom.py (diff)
downloadpyload-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.py10
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'