From 1de8f589216259f42ead0dddbc2954fae8e5e528 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 26 May 2009 13:24:55 +0200 Subject: logic for container plugins implemented, basic plugin now downloads files, RSDF plugin added --- Plugins/YoutubeCom.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Plugins/YoutubeCom.py') diff --git a/Plugins/YoutubeCom.py b/Plugins/YoutubeCom.py index 7224323bb..20a9bd7d1 100644 --- a/Plugins/YoutubeCom.py +++ b/Plugins/YoutubeCom.py @@ -13,14 +13,14 @@ class YoutubeCom(Plugin): self.plugin_pattern = r"http://(www\.)?(de\.)?\youtube\.com/watch\?v=(.*)" self.plugin_type = "hoster" self.plugin_config = {} - pluginProp = {} + pluginProp = {} pluginProp ['name'] = "YoutubeCom" pluginProp ['version'] = "0.1" pluginProp ['format'] = "*.py" pluginProp ['description'] = """Youtube Plugin""" pluginProp ['author'] = "spoob" pluginProp ['author_email'] = "spoob@pyload.org" - self.pluginProp = pluginProp + self.pluginProp = pluginProp self.parent = parent self.html = None self.html_old = None #time() where loaded the HTML @@ -54,9 +54,9 @@ class YoutubeCom(Plugin): def get_file_name(self): if self.html == None: self.download_html() - - file_name_pattern = r"YouTube - (.*)" - return re.search(file_name_pattern, self.html).group(1).replace("/", "") + '.mp4' + + file_name_pattern = r"YouTube - (.*)" + return re.search(file_name_pattern, self.html).group(1).replace("/", "") + '.mp4' def file_exists(self): """ returns True or False -- cgit v1.2.3