diff options
author | 2015-10-23 13:29:12 +0200 | |
---|---|---|
committer | 2015-10-23 13:29:12 +0200 | |
commit | c9b42f02f83a95d7741eee96247466d3b610b159 (patch) | |
tree | ba642be8eeb25233e83763aab2aa6227b31c7885 /module/plugins/hoster/RedtubeCom.py | |
parent | [Dereferer] Don't preload (diff) | |
download | pyload-c9b42f02f83a95d7741eee96247466d3b610b159.tar.xz |
self.html -> self.data
Diffstat (limited to 'module/plugins/hoster/RedtubeCom.py')
-rw-r--r-- | module/plugins/hoster/RedtubeCom.py | 14 |
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 |