diff options
author | guidobelix <guidobelix@hotmail.it> | 2014-10-23 09:42:42 +0200 |
---|---|---|
committer | Guidobelix <guidobelix@hotmail.it> | 2014-11-30 22:31:30 +0100 |
commit | 22a63894b3a6bc206458f0c022b8aa6d7e8d5437 (patch) | |
tree | e538380ec7a2628d273451183ad8bfbb29442194 | |
parent | [SafesharingEu] Improved error handling (diff) | |
download | pyload-22a63894b3a6bc206458f0c022b8aa6d7e8d5437.tar.xz |
[SafesharingEu] Added support for registered users.
new file: module/plugins/accounts/SafesharingEu.py
modified: module/plugins/hoster/SafesharingEu.py
-rw-r--r-- | module/plugins/accounts/SafesharingEu.py | 8 | ||||
-rw-r--r-- | module/plugins/hoster/SafesharingEu.py | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/module/plugins/accounts/SafesharingEu.py b/module/plugins/accounts/SafesharingEu.py index 10a0bcb93..a2b964cba 100644 --- a/module/plugins/accounts/SafesharingEu.py +++ b/module/plugins/accounts/SafesharingEu.py @@ -1,19 +1,19 @@ # -*- coding: utf-8 -*- -from module.plugins.internal.XFSPAccount import XFSPAccount +from module.plugins.internal.XFSAccount import XFSAccount -class SafesharingEu(XFSPAccount): +class SafesharingEu(XFSAccount): __name__ = "SafesharingEu" __type__ = "account" - __version__ = "0.01" + __version__ = "0.02" __description__ = """Safesharing.eu account plugin""" __license__ = "GPLv3" __authors__ = [("guidobelix", "guidobelix@hotmail.it")] - HOSTER_NAME = "safesharing.eu" + 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 1cfd63efc..92a0ff932 100644 --- a/module/plugins/hoster/SafesharingEu.py +++ b/module/plugins/hoster/SafesharingEu.py @@ -1,12 +1,12 @@ # -*- coding: utf-8 -*- -from module.plugins.internal.XFSPHoster import XFSPHoster, create_getInfo +from module.plugins.internal.XFSHoster import XFSHoster, create_getInfo -class SafesharingEu(XFSPHoster): +class SafesharingEu(XFSHoster): __name__ = "SafesharingEu" __type__ = "hoster" - __version__ = "0.03" + __version__ = "0.04" __pattern__ = r'https?://(?:\w+\.)?safesharing.eu/\w+' @@ -14,7 +14,7 @@ class SafesharingEu(XFSPHoster): __license__ = "GPLv3" __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de")] - HOSTER_NAME = "safesharing.eu" + 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>' |