summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar guidobelix <guidobelix@hotmail.it> 2014-10-14 13:05:56 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-14 13:05:56 +0200
commite0c2edca2a55472a5bf15051a093b789627d1d91 (patch)
treea1d93017e8e6532b627d7aba91757603913b6b49 /module/plugins
parent[XFileSharingPro] Fix regexp (diff)
downloadpyload-e0c2edca2a55472a5bf15051a093b789627d1d91.tar.xz
New plugin JunocloudMe (hoster + account)
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/accounts/JunocloudMe.py16
-rw-r--r--module/plugins/hoster/JunocloudMe.py29
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)