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/Plugin.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/Plugin.py')
-rw-r--r-- | Plugins/Plugin.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Plugins/Plugin.py b/Plugins/Plugin.py index c58976cd4..c1205e206 100644 --- a/Plugins/Plugin.py +++ b/Plugins/Plugin.py @@ -7,7 +7,7 @@ import re from module.network.Request import Request class Plugin(): - + def __init__(self, parent): self.parser = ConfigParser.SafeConfigParser() self.config = {} @@ -26,23 +26,23 @@ class Plugin(): self.time_plus_wait = 0 #time() + wait in seconds self.want_reconnect = False self.multi_dl = True - + def set_parent_status(self): """ sets all available Statusinfos about a File in self.parent.status """ pass - + def download_html(self): """ gets the url from self.parent.url saves html in self.html and parses - """ + """ html = "" self.html = html - + def file_exists(self): - """ returns True or False + """ returns True or False """ return True - + def get_file_url(self): """ returns the absolute downloadable filepath """ @@ -50,12 +50,12 @@ class Plugin(): def get_file_name(self): return re.findall("([^\/=]+)", self.parent.url)[-1] - + def wait_until(self): if self.html != None: self.download_html() return self.time_plus_wait - + def proceed(self, url, location): self.req.download(url, location) @@ -75,4 +75,4 @@ class Plugin(): self.config[option] = False if self.config[option].lower() == 'false' else self.config[option] def __call__(self): - return self.props['name'] + return self.props['name']
\ No newline at end of file |