summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/DepositfilesCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-20 03:02:09 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-20 03:34:54 +0200
commit9395182da7afed55a29bde1c7cbefe4204e783f0 (patch)
tree14c5f5f2dc5ea428c4625e8ce9208c5d77d1fc18 /module/plugins/hoster/DepositfilesCom.py
parent[account] self.html -> html (where was possible) (diff)
downloadpyload-9395182da7afed55a29bde1c7cbefe4204e783f0.tar.xz
Store all re.search/match object as "m" instead "found"
Diffstat (limited to 'module/plugins/hoster/DepositfilesCom.py')
-rw-r--r--module/plugins/hoster/DepositfilesCom.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/module/plugins/hoster/DepositfilesCom.py b/module/plugins/hoster/DepositfilesCom.py
index 386e3694e..15e23cba7 100644
--- a/module/plugins/hoster/DepositfilesCom.py
+++ b/module/plugins/hoster/DepositfilesCom.py
@@ -59,16 +59,16 @@ class DepositfilesCom(SimpleHoster):
if wait:
self.setWait(int(wait.group(1)))
- found = re.search(r"var fid = '(\w+)';", self.html)
- if found is None:
+ m = re.search(r"var fid = '(\w+)';", self.html)
+ if m is None:
self.retry(wait_time=5)
- params = {'fid': found.group(1)}
+ params = {'fid': m.group(1)}
self.logDebug("FID: %s" % params['fid'])
captcha_key = '6LdRTL8SAAAAAE9UOdWZ4d0Ky-aeA7XfSqyWDM2m'
- found = re.search(self.RECAPTCHA_PATTERN, self.html)
- if found:
- captcha_key = found.group(1)
+ m = re.search(self.RECAPTCHA_PATTERN, self.html)
+ if m:
+ captcha_key = m.group(1)
self.logDebug("CAPTCHA_KEY: %s" % captcha_key)
self.wait()
@@ -86,11 +86,11 @@ class DepositfilesCom(SimpleHoster):
self.logDebug(params)
continue
- found = re.search(self.FREE_LINK_PATTERN, self.html)
- if found:
+ m = re.search(self.FREE_LINK_PATTERN, self.html)
+ if m:
if 'response' in params:
self.correctCaptcha()
- link = unquote(found.group(1))
+ link = unquote(m.group(1))
self.logDebug("LINK: %s" % link)
break
else: