From 9395182da7afed55a29bde1c7cbefe4204e783f0 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 20 Jul 2014 03:02:09 +0200 Subject: Store all re.search/match object as "m" instead "found" --- module/plugins/hoster/PornhubCom.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/plugins/hoster/PornhubCom.py') diff --git a/module/plugins/hoster/PornhubCom.py b/module/plugins/hoster/PornhubCom.py index 9cb14c1f6..45dc12929 100644 --- a/module/plugins/hoster/PornhubCom.py +++ b/module/plugins/hoster/PornhubCom.py @@ -57,9 +57,9 @@ class PornhubCom(Hoster): if not self.html: self.download_html() - found = re.search(r']+>([^<]+) - ', self.html) - if found: - name = found.group(1) + m = re.search(r']+>([^<]+) - ', self.html) + if m: + name = m.group(1) else: matches = re.findall('

(.*?)

', self.html) if len(matches) > 1: -- cgit v1.2.3