summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/VeehdCom.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/VeehdCom.py
parent[Dereferer] Don't preload (diff)
downloadpyload-c9b42f02f83a95d7741eee96247466d3b610b159.tar.xz
self.html -> self.data
Diffstat (limited to 'module/plugins/hoster/VeehdCom.py')
-rw-r--r--module/plugins/hoster/VeehdCom.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/module/plugins/hoster/VeehdCom.py b/module/plugins/hoster/VeehdCom.py
index 007505d12..7fa30e461 100644
--- a/module/plugins/hoster/VeehdCom.py
+++ b/module/plugins/hoster/VeehdCom.py
@@ -38,23 +38,23 @@ class VeehdCom(Hoster):
def download_html(self):
url = self.pyfile.url
self.log_debug("Requesting page: %s" % url)
- self.html = self.load(url)
+ self.data = self.load(url)
def file_exists(self):
- if not self.html:
+ if not self.data:
self.download_html()
- if '<title>Veehd</title>' in self.html:
+ if '<title>Veehd</title>' in self.data:
return False
return True
def get_file_name(self):
- if not self.html:
+ if not self.data:
self.download_html()
- m = re.search(r'<title.*?>([^<]+) on Veehd</title>', self.html)
+ m = re.search(r'<title.*?>([^<]+) on Veehd</title>', self.data)
if m is None:
self.error(_("Video title not found"))
@@ -73,11 +73,11 @@ class VeehdCom(Hoster):
"""
Returns the absolute downloadable filepath
"""
- if not self.html:
+ if not self.data:
self.download_html()
m = re.search(r'<embed type="video/divx" src="(http://([^/]*\.)?veehd\.com/dl/.+?)"',
- self.html)
+ self.data)
if m is None:
self.error(_("Embedded video url not found"))