diff options
Diffstat (limited to 'module/plugins')
| -rw-r--r-- | module/plugins/accounts/Share76Com.py | 11 | ||||
| -rw-r--r-- | module/plugins/hoster/Share76Com.py | 19 | 
2 files changed, 30 insertions, 0 deletions
| diff --git a/module/plugins/accounts/Share76Com.py b/module/plugins/accounts/Share76Com.py new file mode 100644 index 000000000..9c946ae50 --- /dev/null +++ b/module/plugins/accounts/Share76Com.py @@ -0,0 +1,11 @@ +# -*- coding: utf-8 -*- +from module.plugins.internal.XFSPAccount import XFSPAccount + +class Share76Com(XFSPAccount): +    __name__ = "Share76Com" +    __version__ = "0.02" +    __type__ = "account" +    __description__ = """Share76.com account plugin""" +    __author_name__ = ("me") + +    MAIN_PAGE = "http://Share76.com/" diff --git a/module/plugins/hoster/Share76Com.py b/module/plugins/hoster/Share76Com.py new file mode 100644 index 000000000..db850cb73 --- /dev/null +++ b/module/plugins/hoster/Share76Com.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo + +class Share76Com(XFileSharingPro): +    __name__ = "Share76Com" +    __type__ = "hoster" +    __pattern__ = r"http://(?:\w*\.)*?share76.com/\w{12}" +    __version__ = "0.03" +    __description__ = """share76.com hoster plugin""" +    __author_name__ = ("me") + +    FILE_INFO_PATTERN = r'<h2>\s*File:\s*<font[^>]*>(?P<N>[^>]+)</font>\s*\[<font[^>]*>(?P<S>[0-9.]+) (?P<U>[kKMG])i?B</font>\]</h2>' +    HOSTER_NAME = "share76.com" + +    def setup(self): +        self.resumeDownload = self.multiDL = self.premium +        self.chunkLimit = 1 + +getInfo = create_getInfo(Share76Com) | 
