diff options
author | spoob <spoob@gmx.de> | 2010-01-15 15:03:00 +0100 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2010-01-15 15:03:00 +0100 |
commit | 2edf36eb45d427262e9f83af90b8b4fc2f69aab8 (patch) | |
tree | 5cadf5d76f3784512973244194b19fbade2c1a4b /module/plugins/hoster/MyvideoDe.py | |
parent | merge + fix (diff) | |
download | pyload-2edf36eb45d427262e9f83af90b8b4fc2f69aab8.tar.xz |
Better Argument Parsing in Core, littel fixes
Diffstat (limited to 'module/plugins/hoster/MyvideoDe.py')
-rw-r--r-- | module/plugins/hoster/MyvideoDe.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/module/plugins/hoster/MyvideoDe.py b/module/plugins/hoster/MyvideoDe.py index f7c087091..0fe315547 100644 --- a/module/plugins/hoster/MyvideoDe.py +++ b/module/plugins/hoster/MyvideoDe.py @@ -1,11 +1,9 @@ -#!/usr/bin/env python # -*- coding: utf-8 -*- import re from module.Plugin import Plugin class MyvideoDe(Plugin): - def __init__(self, parent): Plugin.__init__(self, parent) props = {} @@ -25,22 +23,17 @@ class MyvideoDe(Plugin): self.html = self.req.load(self.url) def get_file_url(self): - if self.html == None: - self.download_html() 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) file_url = videoServer + videoId + ".flv" return file_url def get_file_name(self): - if self.html == None: - self.download_html() file_name_pattern = r"<h1 class='globalHd'>(.*)</h1>" return re.search(file_name_pattern, self.html).group(1).replace("/", "") + '.flv' def file_exists(self): - if self.html == None: - self.download_html() + self.download_html() self.req.load(str(self.url), cookies=False, just_header=True) if self.req.lastEffectiveURL == "http://www.myvideo.de/": return False |