From 153e779b243fafb3e69329b4d9eed8fbe375b6d4 Mon Sep 17 00:00:00 2001 From: Jeix Date: Tue, 17 Aug 2010 17:24:31 +0200 Subject: FileserveCom --- module/plugins/hoster/FileserveCom.py | 64 +++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 module/plugins/hoster/FileserveCom.py (limited to 'module/plugins/hoster/FileserveCom.py') diff --git a/module/plugins/hoster/FileserveCom.py b/module/plugins/hoster/FileserveCom.py new file mode 100644 index 000000000..062624f0b --- /dev/null +++ b/module/plugins/hoster/FileserveCom.py @@ -0,0 +1,64 @@ +# -*- coding: utf-8 -*- + +import re +from module.plugins.Hoster import Hoster +from module.plugins.ReCaptcha import ReCaptcha + +class FileserveCom(Hoster): + __name__ = "FileserveCom" + __type__ = "hoster" + __pattern__ = r"http://(www\.)?fileserve\.com/file/.*?(/.*)?" + __version__ = "0.1" + __description__ = """Fileserve.Com File Download Hoster""" + __author_name__ = ("jeix") + __author_mail__ = ("jeix@hasnomail.de") + + def setup(self): + self.multiDL = False + + def process(self, pyfile): + + html = self.load(self.pyfile.url) + if re.search(r'

File not available

', html) != None: + self.offline + + self.pyfile.name = re.search('

(.*?)

', html).group(1) + + if r'