diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-25 01:16:52 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-25 01:16:52 +0200 |
commit | c41d4ec4c5935ee702a44e919730971028bf5724 (patch) | |
tree | f9e557abaa0c9c0161859b9705ae8414a95ecaef /module/plugins/internal/XFSPHoster.py | |
parent | Use parseTraffic instead parseFileSize in accounts (diff) | |
download | pyload-c41d4ec4c5935ee702a44e919730971028bf5724.tar.xz |
Fix and improve plugins logging
Diffstat (limited to 'module/plugins/internal/XFSPHoster.py')
-rw-r--r-- | module/plugins/internal/XFSPHoster.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/internal/XFSPHoster.py b/module/plugins/internal/XFSPHoster.py index 91a69116c..87a82beaf 100644 --- a/module/plugins/internal/XFSPHoster.py +++ b/module/plugins/internal/XFSPHoster.py @@ -102,8 +102,10 @@ class XFSPHoster(SimpleHoster): if self.location: self.startDownload(self.location) elif self.premium: + self.logDebug("Handle as premium download") self.handlePremium() else: + self.logDebug("Handle as free download") self.handleFree() @@ -126,7 +128,6 @@ class XFSPHoster(SimpleHoster): def handleFree(self): url = self.getDownloadLink() - self.logDebug("Download URL: %s" % url) self.startDownload(url) @@ -312,7 +313,7 @@ class XFSPHoster(SimpleHoster): inputs['code'] = self.decryptCaptcha(captcha_url) return 1 - m = re.search(self.CAPTCHA_DIV_PATTERN, self.html, re.DOTALL) + m = re.search(self.CAPTCHA_DIV_PATTERN, self.html, re.S) if m: captcha_div = m.group(1) self.logDebug(captcha_div) |