summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/PornhubCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-23 13:29:12 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-23 13:29:12 +0200
commitc9b42f02f83a95d7741eee96247466d3b610b159 (patch)
treeba642be8eeb25233e83763aab2aa6227b31c7885 /module/plugins/hoster/PornhubCom.py
parent[Dereferer] Don't preload (diff)
downloadpyload-c9b42f02f83a95d7741eee96247466d3b610b159.tar.xz
self.html -> self.data
Diffstat (limited to 'module/plugins/hoster/PornhubCom.py')
-rw-r--r--module/plugins/hoster/PornhubCom.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/module/plugins/hoster/PornhubCom.py b/module/plugins/hoster/PornhubCom.py
index 5946497f1..b6ba01082 100644
--- a/module/plugins/hoster/PornhubCom.py
+++ b/module/plugins/hoster/PornhubCom.py
@@ -30,14 +30,14 @@ class PornhubCom(Hoster):
def download_html(self):
url = self.pyfile.url
- self.html = self.load(url)
+ self.data = self.load(url)
def get_file_url(self):
"""
Returns the absolute downloadable filepath
"""
- if not self.html:
+ if not self.data:
self.download_html()
url = "http://www.pornhub.com//gateway.php"
@@ -64,14 +64,14 @@ class PornhubCom(Hoster):
def get_file_name(self):
- if not self.html:
+ if not self.data:
self.download_html()
- m = re.search(r'<title.+?>([^<]+) - ', self.html)
+ m = re.search(r'<title.+?>([^<]+) - ', self.data)
if m is not None:
name = m.group(1)
else:
- matches = re.findall('<h1>(.*?)</h1>', self.html)
+ matches = re.findall('<h1>(.*?)</h1>', self.data)
if len(matches) > 1:
name = matches[1]
else:
@@ -84,10 +84,10 @@ class PornhubCom(Hoster):
"""
Returns True or False
"""
- if not self.html:
+ if not self.data:
self.download_html()
- if re.search(r'This video is no longer in our database or is in conversion', self.html):
+ if re.search(r'This video is no longer in our database or is in conversion', self.data):
return False
else:
return True