diff options
| author | 2014-11-20 23:00:45 +0100 | |
|---|---|---|
| committer | 2014-11-20 23:00:45 +0100 | |
| commit | c370ee8ed94c016d3e4e30b1917bc34e9510be0b (patch) | |
| tree | 482ef3bbab3e0b9c5957a37b2189ae3266b82485 /module/plugins | |
| parent | [LinkCryptWs] Fix (thx NETHeader) (diff) | |
| download | pyload-c370ee8ed94c016d3e4e30b1917bc34e9510be0b.tar.xz | |
[XFSHoster] Fix StreamcloudEu (thx seoester)
Diffstat (limited to 'module/plugins')
| -rw-r--r-- | module/plugins/internal/XFSHoster.py | 8 | 
1 files changed, 3 insertions, 5 deletions
| diff --git a/module/plugins/internal/XFSHoster.py b/module/plugins/internal/XFSHoster.py index f54bb5e45..43f6cab83 100644 --- a/module/plugins/internal/XFSHoster.py +++ b/module/plugins/internal/XFSHoster.py @@ -16,7 +16,7 @@ from module.utils import html_unescape  class XFSHoster(SimpleHoster):      __name__    = "XFSHoster"      __type__    = "hoster" -    __version__ = "0.15" +    __version__ = "0.16"      __pattern__ = r'^unmatchable$' @@ -41,7 +41,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>' +    WAIT_PATTERN = r'<span id="countdown_str">.*?>(\d+)</span>|id="countdown" value=".*?(\d+).*?"'      OVR_LINK_PATTERN = r'<h2>Download Link</h2>\s*<textarea[^>]*>([^<]+)'      LINK_PATTERN     = None  #: final download url pattern @@ -122,8 +122,6 @@ class XFSHoster(SimpleHoster):              data = self.getPostParameters() -            # sleep(10) -              self.req.http.c.setopt(FOLLOWLOCATION, 0)              self.html = self.load(self.pyfile.url, post=data, ref=True, decode=True) @@ -266,7 +264,7 @@ class XFSHoster(SimpleHoster):              self.logDebug(inputs) -            if 'op' in inputs and inputs['op'] in ("download2", "download3"): +            if 'op' in inputs and inputs['op'] in ("download1", "download2", "download3"):                  if "password" in inputs:                      if self.passwords:                          inputs['password'] = self.passwords.pop(0) | 
