diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-03-05 21:49:40 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-03-05 21:49:40 +0100 |
commit | 510e54f34aaf2ec736ffe1f1d592ca4307287b1e (patch) | |
tree | de039b288f8c2da2a1825c7ee7982eaf5d1a8274 /module/plugins/hoster/ShareFilesCo.py | |
parent | closed #27 (diff) | |
parent | New account plugin for ShareFilesCo (diff) | |
download | pyload-510e54f34aaf2ec736ffe1f1d592ca4307287b1e.tar.xz |
Merge pull request #30 from stickell/stable
New hoster: ShareFilesCo
Diffstat (limited to 'module/plugins/hoster/ShareFilesCo.py')
-rw-r--r-- | module/plugins/hoster/ShareFilesCo.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/module/plugins/hoster/ShareFilesCo.py b/module/plugins/hoster/ShareFilesCo.py new file mode 100644 index 000000000..ee44b0a1f --- /dev/null +++ b/module/plugins/hoster/ShareFilesCo.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo +import re + +class ShareFilesCo(XFileSharingPro): + __name__ = "ShareFilesCo" + __type__ = "hoster" + __pattern__ = r"http://(www\.)?sharefiles\.co/\w{12}" + __version__ = "0.01" + __description__ = """Sharefiles.co hoster plugin""" + __author_name__ = ("stickell") + __author_mail__ = ("l.stickell@yahoo.it") + + HOSTER_NAME = "sharefiles.co" + + def startDownload(self, link): + link = link.strip() + if link.startswith('http://adf.ly'): + link = re.sub('http://adf.ly/\d+/', '', link) + if self.captcha: self.correctCaptcha() + self.logDebug('DIRECT LINK: %s' % link) + self.download(link) + +getInfo = create_getInfo(ShareFilesCo) |