summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/accounts/SafesharingEu.py5
-rw-r--r--module/plugins/hoster/SafesharingEu.py10
2 files changed, 7 insertions, 8 deletions
diff --git a/module/plugins/accounts/SafesharingEu.py b/module/plugins/accounts/SafesharingEu.py
index 55ea129ca..10a0bcb93 100644
--- a/module/plugins/accounts/SafesharingEu.py
+++ b/module/plugins/accounts/SafesharingEu.py
@@ -13,4 +13,7 @@ class SafesharingEu(XFSPAccount):
__authors__ = [("guidobelix", "guidobelix@hotmail.it")]
- HOSTER_URL = "http://www.safesharing.eu/"
+ HOSTER_NAME = "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 d4064c452..cbb448d02 100644
--- a/module/plugins/hoster/SafesharingEu.py
+++ b/module/plugins/hoster/SafesharingEu.py
@@ -1,10 +1,4 @@
# -*- 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
@@ -26,7 +20,9 @@ class SafesharingEu(XFSPHoster):
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>'
+ OFFLINE_PATTERN = r'<b>File Not Found</b>'
+ TEMP_OFFLINE_PATTERN = r'This server is in maintenance mode'
+
WAIT_PATTERN = r'You have to wait (\d+) minutes'
COUNTDOWN_PATTERN = r'<br><span id="countdown_str">Wait <span id=".*">(\d+)</span> seconds</span>'