summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/internal/XFSHoster.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-06 00:31:46 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-06 00:31:46 +0200
commit8d60ae2be14be54d4f4d4775fe696a82f84a000c (patch)
tree57e3da3c2ac9e18d04366c833259cee39635dc7b /pyload/plugin/internal/XFSHoster.py
parentAuto choose webserver (diff)
parent[SimpleHoster] Fallback option (diff)
downloadpyload-8d60ae2be14be54d4f4d4775fe696a82f84a000c.tar.xz
Merge branch 'stable' into 0.4.10
Conflicts: pyload/plugin/addon/AntiVirus.py pyload/plugin/addon/ExtractArchive.py pyload/plugin/hoster/GoogledriveCom.py pyload/plugin/hoster/OneFichierCom.py pyload/plugin/hoster/UlozTo.py pyload/plugin/hoster/YadiSk.py pyload/plugin/hoster/ZippyshareCom.py pyload/plugin/internal/SimpleHoster.py pyload/plugin/internal/XFSCrypter.py pyload/plugin/internal/XFSHoster.py
Diffstat (limited to 'pyload/plugin/internal/XFSHoster.py')
-rw-r--r--pyload/plugin/internal/XFSHoster.py16
1 files changed, 5 insertions, 11 deletions
diff --git a/pyload/plugin/internal/XFSHoster.py b/pyload/plugin/internal/XFSHoster.py
index 3f7aeeee8..956f02b95 100644
--- a/pyload/plugin/internal/XFSHoster.py
+++ b/pyload/plugin/internal/XFSHoster.py
@@ -11,7 +11,7 @@ from pyload.utils import html_unescape
class XFSHoster(SimpleHoster):
__name = "XFSHoster"
__type = "hoster"
- __version = "0.46"
+ __version = "0.47"
__pattern = r'^unmatchable$'
@@ -34,7 +34,7 @@ class XFSHoster(SimpleHoster):
OFFLINE_PATTERN = r'>\s*\w+ (Not Found|file (was|has been) removed)'
TEMP_OFFLINE_PATTERN = r'>\s*\w+ server (is in )?(maintenance|maintainance)'
- WAIT_PATTERN = r'<span id="countdown_str">.*?>(\d+)</span>|id="countdown" value=".*?(\d+).*?"'
+ WAIT_PATTERN = r'<span id="countdown_str".*>(\d+)</span>|id="countdown" value=".*?(\d+).*?"'
PREMIUM_ONLY_PATTERN = r'>This file is available for Premium Users only'
ERROR_PATTERN = r'(?:class=["\']err["\'].*?>|<[Cc]enter><b>|>Error</td>|>\(ERROR:)(?:\s*<.+?>\s*)*(.+?)(?:["\']|<|\))'
@@ -142,10 +142,7 @@ class XFSHoster(SimpleHoster):
action, inputs = self.parseHtmlForm('F1')
if not inputs:
- if self.errmsg:
- self.retry(reason=self.errmsg)
- else:
- self.error(_("TEXTAREA F1 not found"))
+ self.retry(reason=self.errmsg or _("TEXTAREA F1 not found"))
self.logDebug(inputs)
@@ -198,7 +195,7 @@ class XFSHoster(SimpleHoster):
self.fail(_("File can be downloaded by premium users only"))
elif 'limit' in self.errmsg:
- if 'days' in self.errmsg:
+ if 'day' in self.errmsg:
delay = secondsToMidnight(gmt=2)
retries = 3
else:
@@ -236,10 +233,7 @@ class XFSHoster(SimpleHoster):
if not inputs:
action, inputs = self.parseHtmlForm('F1')
if not inputs:
- if self.errmsg:
- self.retry(reason=self.errmsg)
- else:
- self.error(_("TEXTAREA F1 not found"))
+ self.retry(reason=self.errmsg or _("TEXTAREA F1 not found"))
self.logDebug(inputs)