From e0c2edca2a55472a5bf15051a093b789627d1d91 Mon Sep 17 00:00:00 2001 From: guidobelix Date: Tue, 14 Oct 2014 13:05:56 +0200 Subject: New plugin JunocloudMe (hoster + account) --- module/plugins/accounts/JunocloudMe.py | 16 ++++++++++++++++ module/plugins/hoster/JunocloudMe.py | 29 +++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 module/plugins/accounts/JunocloudMe.py create mode 100644 module/plugins/hoster/JunocloudMe.py (limited to 'module/plugins') diff --git a/module/plugins/accounts/JunocloudMe.py b/module/plugins/accounts/JunocloudMe.py new file mode 100644 index 000000000..8cd7e8dde --- /dev/null +++ b/module/plugins/accounts/JunocloudMe.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- + +from module.plugins.internal.XFSPAccount import XFSPAccount + + +class JunocloudMe(XFSPAccount): + __name__ = "JunocloudMe" + __type__ = "account" + __version__ = "0.01" + + __description__ = """Junocloud.me account plugin""" + __license__ = "GPLv3" + __authors__ = [("guidobelix", "guidobelix@hotmail.it")] + + + HOSTER_URL = "http://www.junocloud.me/" diff --git a/module/plugins/hoster/JunocloudMe.py b/module/plugins/hoster/JunocloudMe.py new file mode 100644 index 000000000..e51dda141 --- /dev/null +++ b/module/plugins/hoster/JunocloudMe.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- + +from module.plugins.internal.XFSPHoster import XFSPHoster, create_getInfo + + +class JunocloudMe(XFSPHoster): + __name__ = "JunocloudMe" + __type__ = "hoster" + __version__ = "0.01" + + __pattern__ = r'http://(?:\w+\.)?junocloud\.me/\w{12}' + + __description__ = """Junocloud.me hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("guidobelix", "guidobelix@hotmail.it")] + + + HOSTER_NAME = "junocloud.me" + + FILE_URL_REPLACEMENTS = [(r'//(junocloud)', r'//dl3.\1')] + + FILE_NAME_PATTERN = r'

http://junocloud.me/w{12}/(?P.+?)

' + FILE_SIZE_PATTERN = r'

Size: (?P[\d.,]+) (?P\w+)

' + + OFFLINE_PATTERN = r'>No such file with this filename<' + TEMP_OFFLINE_PATTERN = r'The page may have been renamed, removed or be temporarily unavailable.<' + + +getInfo = create_getInfo(JunocloudMe) -- cgit v1.2.3