diff options
author | cp1 <christopherpool1@googlemail.com> | 2009-06-11 16:50:48 +0200 |
---|---|---|
committer | cp1 <christopherpool1@googlemail.com> | 2009-06-11 16:50:48 +0200 |
commit | fd6e286ee089cf75276f2581471aba254d69fcb5 (patch) | |
tree | 1f91e2063f3182d172d7c7f70c4fdb98b407a60b /Plugins/MyvideoDe.py | |
parent | add wxversion selector to ensure wxWidgets 2.8 is used (diff) | |
download | pyload-fd6e286ee089cf75276f2581471aba254d69fcb5.tar.xz |
correcting false identation (tabs to spaces)
Diffstat (limited to 'Plugins/MyvideoDe.py')
-rw-r--r-- | Plugins/MyvideoDe.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Plugins/MyvideoDe.py b/Plugins/MyvideoDe.py index 762cd77e0..b4427f0fc 100644 --- a/Plugins/MyvideoDe.py +++ b/Plugins/MyvideoDe.py @@ -4,7 +4,7 @@ import re from Plugin import Plugin class MyvideoDe(Plugin): - + def __init__(self, parent): Plugin.__init__(self, parent) props = {} @@ -19,7 +19,7 @@ class MyvideoDe(Plugin): self.parent = parent self.html = None self.html_old = None #time() where loaded the HTML - self.time_plus_wait = None #time() + wait in seconds + self.time_plus_wait = None #time() + wait in seconds def set_parent_status(self): """ sets all available Statusinfos about a File in self.parent.status @@ -29,11 +29,11 @@ class MyvideoDe(Plugin): self.parent.status.filename = self.get_file_name() self.parent.status.url = self.get_file_url() self.parent.status.wait = self.wait_until() - + def download_html(self): url = self.parent.url self.html = self.req.load(url) - + def get_file_url(self): """ returns the absolute downloadable filepath """ @@ -46,15 +46,15 @@ class MyvideoDe(Plugin): print videoServer print file_url 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): - """ returns True or False + """ returns True or False """ if self.html == None: self.download_html() |