From c41d4ec4c5935ee702a44e919730971028bf5724 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 25 Oct 2014 01:16:52 +0200 Subject: Fix and improve plugins logging --- module/plugins/internal/XFSPHoster.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'module/plugins/internal/XFSPHoster.py') 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) -- cgit v1.2.3