diff options
| author | 2014-07-20 03:02:09 +0200 | |
|---|---|---|
| committer | 2014-07-20 03:34:54 +0200 | |
| commit | 9395182da7afed55a29bde1c7cbefe4204e783f0 (patch) | |
| tree | 14c5f5f2dc5ea428c4625e8ce9208c5d77d1fc18 /module/plugins/hoster/LetitbitNet.py | |
| parent | [account] self.html -> html (where was possible) (diff) | |
| download | pyload-9395182da7afed55a29bde1c7cbefe4204e783f0.tar.xz | |
Store all re.search/match object as "m" instead "found"
Diffstat (limited to 'module/plugins/hoster/LetitbitNet.py')
| -rw-r--r-- | module/plugins/hoster/LetitbitNet.py | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/hoster/LetitbitNet.py b/module/plugins/hoster/LetitbitNet.py index a492a87ff..1a5928f17 100644 --- a/module/plugins/hoster/LetitbitNet.py +++ b/module/plugins/hoster/LetitbitNet.py @@ -99,18 +99,18 @@ class LetitbitNet(SimpleHoster):          #          # try:          #     ajax_check_url, captcha_url = re.search(self.CHECK_URL_PATTERN, self.html).groups() -        #     found = re.search(self.SECONDS_PATTERN, self.html) -        #     seconds = int(found.group(1)) if found else 60 +        #     m = re.search(self.SECONDS_PATTERN, self.html) +        #     seconds = int(m.group(1)) if m else 60          #     self.wait(seconds+1)          # except Exception, e:          #     self.logError(e)          #     self.parseError("page 3 / js") -        found = re.search(self.SECONDS_PATTERN, self.html) -        seconds = int(found.group(1)) if found else 60 +        m = re.search(self.SECONDS_PATTERN, self.html) +        seconds = int(m.group(1)) if m else 60          self.logDebug("Seconds found", seconds) -        found = re.search(self.CAPTCHA_CONTROL_FIELD, self.html) -        recaptcha_control_field = found.group(1) +        m = re.search(self.CAPTCHA_CONTROL_FIELD, self.html) +        recaptcha_control_field = m.group(1)          self.logDebug("ReCaptcha control field found", recaptcha_control_field)          self.wait(seconds + 1)  | 
