summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-01 18:52:21 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-01 18:52:21 +0100
commitd651ed468f2f38c7e81fa9c7945b3e996461e8bb (patch)
tree9c1cb8dda232226961a0cde750f0d372f130bef7 /module
parent[XFSAccount] Improve patterns (diff)
downloadpyload-d651ed468f2f38c7e81fa9c7945b3e996461e8bb.tar.xz
[SafesharingEu] Cleanup
Diffstat (limited to 'module')
-rw-r--r--module/plugins/accounts/SafesharingEu.py11
-rw-r--r--module/plugins/hoster/SafesharingEu.py25
2 files changed, 11 insertions, 25 deletions
diff --git a/module/plugins/accounts/SafesharingEu.py b/module/plugins/accounts/SafesharingEu.py
index a2b964cba..2e58d33b3 100644
--- a/module/plugins/accounts/SafesharingEu.py
+++ b/module/plugins/accounts/SafesharingEu.py
@@ -4,16 +4,13 @@ from module.plugins.internal.XFSAccount import XFSAccount
class SafesharingEu(XFSAccount):
- __name__ = "SafesharingEu"
- __type__ = "account"
+ __name__ = "SafesharingEu"
+ __type__ = "account"
__version__ = "0.02"
__description__ = """Safesharing.eu account plugin"""
- __license__ = "GPLv3"
- __authors__ = [("guidobelix", "guidobelix@hotmail.it")]
+ __license__ = "GPLv3"
+ __authors__ = [("guidobelix", "guidobelix@hotmail.it")]
HOSTER_DOMAIN = "safesharing.eu"
-
- VALID_UNTIL_PATTERN = r'> Premium.[Aa]ccount expire:(.+?)</div>'
- TRAFFIC_LEFT_PATTERN = r'> Traffic available today:\s*?(?P<S>[\d.,]+)\s*?(?:(?P<U>[\w^_]+)\s*)?</div>'
diff --git a/module/plugins/hoster/SafesharingEu.py b/module/plugins/hoster/SafesharingEu.py
index 92a0ff932..f0936b9e8 100644
--- a/module/plugins/hoster/SafesharingEu.py
+++ b/module/plugins/hoster/SafesharingEu.py
@@ -4,31 +4,20 @@ from module.plugins.internal.XFSHoster import XFSHoster, create_getInfo
class SafesharingEu(XFSHoster):
- __name__ = "SafesharingEu"
- __type__ = "hoster"
- __version__ = "0.04"
+ __name__ = "SafesharingEu"
+ __type__ = "hoster"
+ __version__ = "0.05"
- __pattern__ = r'https?://(?:\w+\.)?safesharing.eu/\w+'
+ __pattern__ = r'https?://(?:www\.)?safesharing\.eu/\w{12}'
__description__ = """Safesharing.eu hoster plugin"""
- __license__ = "GPLv3"
- __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de")]
+ __license__ = "GPLv3"
+ __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de")]
- HOSTER_DOMAIN = "safesharing.eu"
-
- FILE_NAME_PATTERN = r'Filename:</b></td><td nowrap>(?P<N>.*)</td></tr>'
- FILE_SIZE_PATTERN = r'Size:</b></td><td>(?P<S>.*) (?P<U>[kKmMbB]*) <small>'
-
- FILE_ID_PATTERN = r'<input type="hidden" name="id" value="(.*)">'
- OFFLINE_PATTERN = r'<b>File Not Found</b>'
- TEMP_OFFLINE_PATTERN = r'This server is in maintenance mode'
+ HOSTER_DOMAIN = "safesharing.eu"
WAIT_PATTERN = r'You have to wait (\d+) minutes'
- COUNTDOWN_PATTERN = r'<br><span id="countdown_str">Wait <span id=".*">(\d+)</span> seconds</span>'
-
- 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>)'