summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hoster/UploadingCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-05 13:32:36 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-05 13:32:36 +0200
commitd1e2da48ff1158c84bab62aba3e62ff16f24f124 (patch)
tree14c2b461b84ab1c07ab39fbe3a80aa69c7b4c8ef /pyload/plugins/hoster/UploadingCom.py
parentFix refs on hook plugins + add missing __init__ files (diff)
parentRemove old Ev0InFetcher hook (diff)
downloadpyload-d1e2da48ff1158c84bab62aba3e62ff16f24f124.tar.xz
Merge branch 'stable' into 0.4.10
Conflicts: module/plugins/internal/CaptchaService.py pyload/plugins/account/CyberlockerCh.py pyload/plugins/account/EgoFilesCom.py pyload/plugins/account/HotfileCom.py pyload/plugins/crypter/HotfileFolderCom.py pyload/plugins/crypter/LinkSaveIn.py pyload/plugins/crypter/OneKhDe.py pyload/plugins/hoster/EgoFilesCom.py pyload/plugins/internal/XFSPAccount.py
Diffstat (limited to 'pyload/plugins/hoster/UploadingCom.py')
-rw-r--r--pyload/plugins/hoster/UploadingCom.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/pyload/plugins/hoster/UploadingCom.py b/pyload/plugins/hoster/UploadingCom.py
index 882cb863f..1df258c4f 100644
--- a/pyload/plugins/hoster/UploadingCom.py
+++ b/pyload/plugins/hoster/UploadingCom.py
@@ -19,18 +19,18 @@ class UploadingCom(SimpleHoster):
__author_name__ = ("jeix", "mkaay", "zoidberg")
__author_mail__ = ("jeix@hasnomail.de", "mkaay@mkaay.de", "zoidberg@mujmail.cz")
+
FILE_NAME_PATTERN = r'id="file_title">(?P<N>.+)</'
FILE_SIZE_PATTERN = r'size tip_container">(?P<S>[\d.]+) (?P<U>\w+)<'
OFFLINE_PATTERN = r'(Page|file) not found'
+ COOKIES = [(".uploading.com", "lang", "1"),
+ (".uploading.com", "language", "1"),
+ (".uploading.com", "setlang", "en"),
+ (".uploading.com", "_lang", "en")]
- def process(self, pyfile):
- # set lang to english
- self.req.cj.setCookie(".uploading.com", "lang", "1")
- self.req.cj.setCookie(".uploading.com", "language", "1")
- self.req.cj.setCookie(".uploading.com", "setlang", "en")
- self.req.cj.setCookie(".uploading.com", "_lang", "en")
+ def process(self, pyfile):
if not "/get/" in pyfile.url:
pyfile.url = pyfile.url.replace("/files", "/files/get")
@@ -42,6 +42,7 @@ class UploadingCom(SimpleHoster):
else:
self.handleFree()
+
def handlePremium(self):
postData = {'action': 'get_link',
'code': self.file_info['ID'],
@@ -55,6 +56,7 @@ class UploadingCom(SimpleHoster):
raise Exception("Plugin defect.")
+
def handleFree(self):
m = re.search('<h2>((Daily )?Download Limit)</h2>', self.html)
if m: