From 3e0bc9a0fb4dd6324e9764bc31f4686d672b70f4 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 5 Oct 2010 22:55:22 +0200 Subject: general js api + pyv8 support --- module/plugins/hoster/BasePlugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/plugins/hoster') diff --git a/module/plugins/hoster/BasePlugin.py b/module/plugins/hoster/BasePlugin.py index 09545d493..4701f82ca 100644 --- a/module/plugins/hoster/BasePlugin.py +++ b/module/plugins/hoster/BasePlugin.py @@ -16,9 +16,9 @@ class BasePlugin(Hoster): def process(self, pyfile): """main function""" - if pyfile.url.startswith("http://"): + if pyfile.url.startswith("http"): - pyfile.name = re.findall("([^\/=]+)", pyfile.url)[-1] + pyfile.name = re.findall("([^/=]+)", pyfile.url)[-1] self.download(pyfile.url) else: -- cgit v1.2.3