summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/RedtubeCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/RedtubeCom.py')
-rw-r--r--module/plugins/hoster/RedtubeCom.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/module/plugins/hoster/RedtubeCom.py b/module/plugins/hoster/RedtubeCom.py
index 4d93e0149..4791e87c7 100644
--- a/module/plugins/hoster/RedtubeCom.py
+++ b/module/plugins/hoster/RedtubeCom.py
@@ -31,34 +31,34 @@ class RedtubeCom(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()
- return html_unescape(re.search(r'hashlink=(http.*?)"', self.html).group(1))
+ return html_unescape(re.search(r'hashlink=(http.*?)"', self.data).group(1))
def get_file_name(self):
- if not self.html:
+ if not self.data:
self.download_html()
- return re.search('<title>(.*?)- RedTube - Free Porn Videos</title>', self.html).group(1).strip() + ".flv"
+ return re.search('<title>(.*?)- RedTube - Free Porn Videos</title>', self.data).group(1).strip() + ".flv"
def file_exists(self):
"""
Returns True or False
"""
- if not self.html:
+ if not self.data:
self.download_html()
- if re.search(r'This video has been removed.', self.html):
+ if re.search(r'This video has been removed.', self.data):
return False
else:
return True