diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-05-28 12:52:56 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-05-28 12:52:56 +0200 |
commit | c9eb7081bbd4cedf9a6574c39ceb0cfde1083113 (patch) | |
tree | 7c3e26941ccf347c6a1571b155cc8ef1cc2d685c /Plugins/YoutubeCom.py | |
parent | fexed little bug (diff) | |
download | pyload-c9eb7081bbd4cedf9a6574c39ceb0cfde1083113.tar.xz |
clean up some code, new config parser, basic time shedule
Diffstat (limited to 'Plugins/YoutubeCom.py')
-rw-r--r-- | Plugins/YoutubeCom.py | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/Plugins/YoutubeCom.py b/Plugins/YoutubeCom.py index d6b0473d3..c1ad22102 100644 --- a/Plugins/YoutubeCom.py +++ b/Plugins/YoutubeCom.py @@ -1,23 +1,21 @@ #!/usr/bin/env python -import urllib2 import re -from time import time from Plugin import Plugin class YoutubeCom(Plugin): def __init__(self, parent): Plugin.__init__(self, parent) - 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 + props = {} + props['name'] = "YoutubeCom" + props['type'] = "hoster" + props['pattern'] = r"http://(www\.)?(de\.)?\youtube\.com/watch\?v=.*" + props['version'] = "0.1" + props['description'] = """Youtube.com Video Download Plugin""" + props['author_name'] = ("spoob") + props['author_mail'] = ("spoob@pyload.org") + self.props = props self.parent = parent self.html = None self.html_old = None #time() where loaded the HTML @@ -71,4 +69,4 @@ class YoutubeCom(Plugin): return self.time_plus_wait def __call__(self): - return self.plugin_config['name'] + return self.props['name'] |