summaryrefslogtreecommitdiffstats
path: root/Plugins/Plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'Plugins/Plugin.py')
-rw-r--r--Plugins/Plugin.py20
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