summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/SafesharingEu.py
diff options
context:
space:
mode:
authorGravatar guidobelix <Guidobelix@users.noreply.github.com> 2014-10-29 23:10:09 +0100
committerGravatar Guidobelix <guidobelix@hotmail.it> 2014-11-30 22:28:52 +0100
commit221a6fd47f3f805ad81c43651b04636415eea547 (patch)
treecfddababc38801476a31b207155bcb8d22824c3b /module/plugins/hoster/SafesharingEu.py
parent[SafesharingEu] Improved patterns (diff)
downloadpyload-221a6fd47f3f805ad81c43651b04636415eea547.tar.xz
[SafesharingEu] Improved error handling
Diffstat (limited to 'module/plugins/hoster/SafesharingEu.py')
-rw-r--r--module/plugins/hoster/SafesharingEu.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/module/plugins/hoster/SafesharingEu.py b/module/plugins/hoster/SafesharingEu.py
index cbb448d02..1cfd63efc 100644
--- a/module/plugins/hoster/SafesharingEu.py
+++ b/module/plugins/hoster/SafesharingEu.py
@@ -6,7 +6,7 @@ from module.plugins.internal.XFSPHoster import XFSPHoster, create_getInfo
class SafesharingEu(XFSPHoster):
__name__ = "SafesharingEu"
__type__ = "hoster"
- __version__ = "0.02"
+ __version__ = "0.03"
__pattern__ = r'https?://(?:\w+\.)?safesharing.eu/\w+'
@@ -30,5 +30,7 @@ class SafesharingEu(XFSPHoster):
RECAPTCHA_KEY_PATTERN = r'<script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge\?k=(.*)"></script>'
RANDOM_STRING_PATTERN = r'<input type="hidden" name="rand" value="(.*)">'
+ ERROR_PATTERN = r'(?:<div class="alert alert-danger">)(.+?)(?:</div>)'
+
getInfo = create_getInfo(SafesharingEu)