diff options
-rw-r--r-- | module/plugins/accounts/JunocloudMe.py | 16 | ||||
-rw-r--r-- | module/plugins/hoster/JunocloudMe.py | 29 |
2 files changed, 45 insertions, 0 deletions
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'<p class="request_file">http://junocloud.me/w{12}/(?P<N>.+?)</p>' + FILE_SIZE_PATTERN = r'<p class="request_filesize">Size: (?P<S>[\d.,]+) (?P<U>\w+)</p>' + + 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) |