diff options
author | guidobelix <guidobelix@hotmail.it> | 2014-10-23 09:42:42 +0200 |
---|---|---|
committer | Guidobelix <guidobelix@hotmail.it> | 2014-11-30 22:28:52 +0100 |
commit | a3714d9c2c1d3e4668b1653e9c1428fb8006bc46 (patch) | |
tree | 49f743360df78b00f011cd822c055ef95d3098f3 /module/plugins/hoster/SafesharingEu.py | |
parent | [BasePlugin] Improve downloadFile routine (diff) | |
download | pyload-a3714d9c2c1d3e4668b1653e9c1428fb8006bc46.tar.xz |
[SafesharingEu] Added support for registered users.
new file: module/plugins/accounts/SafesharingEu.py
modified: module/plugins/hoster/SafesharingEu.py
Diffstat (limited to 'module/plugins/hoster/SafesharingEu.py')
-rw-r--r-- | module/plugins/hoster/SafesharingEu.py | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/module/plugins/hoster/SafesharingEu.py b/module/plugins/hoster/SafesharingEu.py new file mode 100644 index 000000000..d4064c452 --- /dev/null +++ b/module/plugins/hoster/SafesharingEu.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +# +# Test link: +# http://safesharing.eu/h1ijvcrpl9ys + +# Test link (offline): +# http://safesharing.eu/h1ijvcrpl9ysgggggg + +from module.plugins.internal.XFSPHoster import XFSPHoster, create_getInfo + + +class SafesharingEu(XFSPHoster): + __name__ = "SafesharingEu" + __type__ = "hoster" + __version__ = "0.02" + + __pattern__ = r'https?://(?:\w+\.)?safesharing.eu/\w+' + + __description__ = """Safesharing.eu hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de")] + + HOSTER_NAME = "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="(.*)">' + FILE_OFFLINE_PATTERN = r'<Title>File Not Found</Title>' + + 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="(.*)">' + + +getInfo = create_getInfo(SafesharingEu) |