summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-04-26 23:50:09 +0200
committerGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-04-26 23:50:09 +0200
commitb390a325d9c84f2eea0fd7307f18a18777523b13 (patch)
tree4aea4a17d930016acc716ef603d75e4866262ad0
parentMerge pull request #1 from GammaC0de/GammaC0de-patch-1 (diff)
downloadpyload-b390a325d9c84f2eea0fd7307f18a18777523b13.tar.xz
UpleaCom fix size calculation and Set DISPOSITION to False (temp)
-rw-r--r--module/plugins/hoster/UpleaCom.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/hoster/UpleaCom.py b/module/plugins/hoster/UpleaCom.py
index 65e0299ec..d9d1c8ef6 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.09"
__pattern__ = r'https?://(?:www\.)?uplea\.com/dl/\w{15}'
@@ -20,9 +20,11 @@ class UpleaCom(XFSHoster):
("GammaC0de", None)]
+ DISPOSITION = False #@TODO: Remove in 0.4.10
+
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')]
+ 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'