summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar zoidberg10 <zoidberg@mujmail.cz> 2011-12-22 15:16:57 +0100
committerGravatar zoidberg10 <zoidberg@mujmail.cz> 2011-12-22 15:16:57 +0100
commitb2dd4f446ac3e6d9863d0f6d0e3ec4a622c60a84 (patch)
tree03a2cec1925024376311a69672d6cddd8faf444d /module/plugins
parentclosed #462 (diff)
downloadpyload-b2dd4f446ac3e6d9863d0f6d0e3ec4a622c60a84.tar.xz
closed #466
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/hoster/UploadingCom.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/module/plugins/hoster/UploadingCom.py b/module/plugins/hoster/UploadingCom.py
index 3fb2d4ba2..83bbaea82 100644
--- a/module/plugins/hoster/UploadingCom.py
+++ b/module/plugins/hoster/UploadingCom.py
@@ -80,6 +80,12 @@ class UploadingCom(Hoster):
raise Exception("Plugin defect.")
def handleFree(self):
+ found = re.search('<h2>((Daily )?Download Limit)</h2>', self.html[0])
+ if found:
+ self.pyfile.error = found.group(1)
+ self.logWarning(self.pyfile.error)
+ self.retry(max_tries=6, wait_time = 21600 if found.group(2) else 900, reason = self.pyfile.error)
+
self.code = re.search(r'name="code" value="(.*?)"', self.html[0]).group(1)
self.fileid = re.search(r'name="file_id" value="(.*?)"', self.html[0]).group(1)