summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/StreamCz.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/StreamCz.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/StreamCz.py')
-rw-r--r--module/plugins/hoster/StreamCz.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/hoster/StreamCz.py b/module/plugins/hoster/StreamCz.py
index 7614c0cc3..e68130389 100644
--- a/module/plugins/hoster/StreamCz.py
+++ b/module/plugins/hoster/StreamCz.py
@@ -63,10 +63,10 @@ class StreamCz(Hoster):
if re.search(self.OFFLINE_PATTERN, self.html):
self.offline()
- found = re.search(self.CDN_PATTERN, self.html)
- if found is None:
+ m = re.search(self.CDN_PATTERN, self.html)
+ if m is None:
self.fail("Parse error (CDN)")
- cdn = found.groupdict()
+ cdn = m.groupdict()
self.logDebug(cdn)
for cdnkey in ("cdnHD", "cdnHQ", "cdnLQ"):
if cdnkey in cdn and cdn[cdnkey] > '':
@@ -75,10 +75,10 @@ class StreamCz(Hoster):
else:
self.fail("Stream URL not found")
- found = re.search(self.FILE_NAME_PATTERN, self.html)
- if found is None:
+ m = re.search(self.FILE_NAME_PATTERN, self.html)
+ if m is None:
self.fail("Parse error (NAME)")
- pyfile.name = "%s-%s.%s.mp4" % (found.group(2), found.group(1), cdnkey[-2:])
+ pyfile.name = "%s-%s.%s.mp4" % (m.group(2), m.group(1), cdnkey[-2:])
download_url = "http://cdn-dispatcher.stream.cz/?id=" + cdnid
self.logInfo("STREAM (%s): %s" % (cdnkey[-2:], download_url))