From a3714d9c2c1d3e4668b1653e9c1428fb8006bc46 Mon Sep 17 00:00:00 2001 From: guidobelix Date: Thu, 23 Oct 2014 09:42:42 +0200 Subject: [SafesharingEu] Added support for registered users. new file: module/plugins/accounts/SafesharingEu.py modified: module/plugins/hoster/SafesharingEu.py --- module/plugins/hoster/SafesharingEu.py | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 module/plugins/hoster/SafesharingEu.py (limited to 'module/plugins/hoster/SafesharingEu.py') 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:(?P.*)' + FILE_SIZE_PATTERN = r'Size:(?P.*) (?P[kKmMbB]*) ' + + FILE_ID_PATTERN = r'' + FILE_OFFLINE_PATTERN = r'File Not Found' + + WAIT_PATTERN = r'You have to wait (\d+) minutes' + COUNTDOWN_PATTERN = r'
Wait (\d+) seconds' + + RECAPTCHA_KEY_PATTERN = r'' + RANDOM_STRING_PATTERN = r'' + + +getInfo = create_getInfo(SafesharingEu) -- cgit v1.2.3