diff options
author | spoob <spoob@gmx.de> | 2009-05-27 22:19:24 +0200 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2009-05-27 22:19:24 +0200 |
commit | 89e728b615355befb562c11c8076f661ee61f24f (patch) | |
tree | 52c11f16f2181f00ec8624f2ee092d63382ce06a /Plugins/YoutubeCom.py | |
parent | fixed log bug (diff) | |
download | pyload-89e728b615355befb562c11c8076f661ee61f24f.tar.xz |
created uniform plugin config, fixed some bugs
Diffstat (limited to 'Plugins/YoutubeCom.py')
-rw-r--r-- | Plugins/YoutubeCom.py | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/Plugins/YoutubeCom.py b/Plugins/YoutubeCom.py index 0710711ea..31d2b60a4 100644 --- a/Plugins/YoutubeCom.py +++ b/Plugins/YoutubeCom.py @@ -9,18 +9,15 @@ class YoutubeCom(Plugin): def __init__(self, parent): Plugin.__init__(self, parent) - self.plugin_name = "YoutubeCom" - self.plugin_pattern = r"http://(www\.)?(de\.)?\youtube\.com/watch\?v=.*" - self.plugin_type = "hoster" - self.plugin_config = {} - pluginProp = {} - pluginProp ['name'] = "Youtube.com" - pluginProp ['version'] = "0.1" - pluginProp ['format'] = "*.py" - pluginProp ['description'] = """Youtube Plugin""" - pluginProp ['author'] = "spoob" - pluginProp ['author_email'] = "spoob@pyload.org" - self.pluginProp = pluginProp + plugin_config = {} + plugin_config['name'] = "YoutubeCom" + plugin_config['type'] = "hoster" + plugin_config['pattern'] = r"http://(www\.)?(de\.)?\youtube\.com/watch\?v=.*" + plugin_config['version'] = "0.1" + plugin_config['description'] = """Youtube.com Video Download Plugin""" + plugin_config['author_name'] = ("spoob") + plugin_config['author_mail'] = ("spoob@pyload.org") + self.plugin_config = plugin_config self.parent = parent self.html = None self.html_old = None #time() where loaded the HTML |