summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/MyvideoDe.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/MyvideoDe.py
parent[Dereferer] Don't preload (diff)
downloadpyload-c9b42f02f83a95d7741eee96247466d3b610b159.tar.xz
self.html -> self.data
Diffstat (limited to 'module/plugins/hoster/MyvideoDe.py')
-rw-r--r--module/plugins/hoster/MyvideoDe.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/MyvideoDe.py b/module/plugins/hoster/MyvideoDe.py
index eb1d283e2..ed2699bdf 100644
--- a/module/plugins/hoster/MyvideoDe.py
+++ b/module/plugins/hoster/MyvideoDe.py
@@ -28,19 +28,19 @@ class MyvideoDe(Hoster):
def download_html(self):
- self.html = self.load(self.pyfile.url)
+ self.data = self.load(self.pyfile.url)
def get_file_url(self):
- videoId = re.search(r"addVariable\('_videoid','(.*)'\);p.addParam\('quality'", self.html).group(1)
- videoServer = re.search("rel='image_src' href='(.*)thumbs/.*' />", self.html).group(1)
+ videoId = re.search(r"addVariable\('_videoid','(.*)'\);p.addParam\('quality'", self.data).group(1)
+ videoServer = re.search("rel='image_src' href='(.*)thumbs/.*' />", self.data).group(1)
file_url = videoServer + videoId + ".flv"
return file_url
def get_file_name(self):
file_name_pattern = r'<h1 class=\'globalHd\'>(.*)</h1>'
- return html_unescape(re.search(file_name_pattern, self.html).group(1).replace("/", "") + '.flv')
+ return html_unescape(re.search(file_name_pattern, self.data).group(1).replace("/", "") + '.flv')
def file_exists(self):