summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/UlozTo.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/UlozTo.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/UlozTo.py')
-rw-r--r--module/plugins/hoster/UlozTo.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/hoster/UlozTo.py b/module/plugins/hoster/UlozTo.py
index 53494afb7..2b68bedf7 100644
--- a/module/plugins/hoster/UlozTo.py
+++ b/module/plugins/hoster/UlozTo.py
@@ -61,10 +61,10 @@ class UlozTo(SimpleHoster):
if re.search(self.ADULT_PATTERN, self.html):
self.logInfo("Adult content confirmation needed. Proceeding..")
- found = re.search(self.TOKEN_PATTERN, self.html)
- if found is None:
+ m = re.search(self.TOKEN_PATTERN, self.html)
+ if m is None:
self.parseError('TOKEN')
- token = found.group(1)
+ token = m.group(1)
self.html = self.load(pyfile.url, get={"do": "askAgeForm-submit"},
post={"agree": "Confirm", "_token_": token}, cookies=True)
@@ -132,10 +132,10 @@ class UlozTo(SimpleHoster):
def findDownloadURL(self, premium=False):
msg = "%s link" % ("Premium" if premium else "Free")
- found = re.search(self.PREMIUM_URL_PATTERN if premium else self.FREE_URL_PATTERN, self.html)
- if found is None:
+ m = re.search(self.PREMIUM_URL_PATTERN if premium else self.FREE_URL_PATTERN, self.html)
+ if m is None:
self.parseError(msg)
- parsed_url = "http://www.ulozto.net" + found.group(1)
+ parsed_url = "http://www.ulozto.net" + m.group(1)
self.logDebug("%s: %s" % (msg, parsed_url))
return parsed_url