summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hoster/SafesharingEu.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-07 16:03:18 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-07 16:03:18 +0100
commit0331df435b912d8abfc012d15fd8be9ae90ad78d (patch)
treef4e44f5ea7da19d33235ba311ade9f1133c30a97 /pyload/plugins/hoster/SafesharingEu.py
parentMerge branch 'stable' into 0.4.10 (diff)
downloadpyload-0331df435b912d8abfc012d15fd8be9ae90ad78d.tar.xz
Fix previous merge
Diffstat (limited to 'pyload/plugins/hoster/SafesharingEu.py')
-rw-r--r--pyload/plugins/hoster/SafesharingEu.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/pyload/plugins/hoster/SafesharingEu.py b/pyload/plugins/hoster/SafesharingEu.py
new file mode 100644
index 000000000..730bfc692
--- /dev/null
+++ b/pyload/plugins/hoster/SafesharingEu.py
@@ -0,0 +1,25 @@
+# -*- coding: utf-8 -*-
+
+from pyload.plugins.internal.XFSHoster import XFSHoster, create_getInfo
+
+
+class SafesharingEu(XFSHoster):
+ __name__ = "SafesharingEu"
+ __type__ = "hoster"
+ __version__ = "0.05"
+
+ __pattern__ = r'https?://(?:www\.)?safesharing\.eu/\w{12}'
+
+ __description__ = """Safesharing.eu hoster plugin"""
+ __license__ = "GPLv3"
+ __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de")]
+
+
+ HOSTER_DOMAIN = "safesharing.eu"
+
+ WAIT_PATTERN = r'You have to wait (\d+) minutes'
+
+ ERROR_PATTERN = r'(?:<div class="alert alert-danger">)(.+?)(?:</div>)'
+
+
+getInfo = create_getInfo(SafesharingEu)