diff --git a/weboob/backends/bnporc/browser.py b/weboob/backends/bnporc/browser.py index c289b30f..f0e8db09 100644 --- a/weboob/backends/bnporc/browser.py +++ b/weboob/backends/bnporc/browser.py @@ -30,7 +30,7 @@ class BNParser(StandardParser): s = data.read() s = s.replace('', '') data = StringIO(s) - return StandardParser.parse(self, data) + return StandardParser.parse(self, data, encoding) # Browser class BNPorc(Browser): diff --git a/weboob/backends/dlfp/backend.py b/weboob/backends/dlfp/backend.py index 8460795e..1140e2a8 100644 --- a/weboob/backends/dlfp/backend.py +++ b/weboob/backends/dlfp/backend.py @@ -58,9 +58,22 @@ class DLFPBackend(Backend, ICapMessages, ICapMessagesReply, ICapUpdatable): def _iter_messages(self, what): for article in ArticlesList(what).iter_articles(): thread = self.browser.get_content(article.id) - yield Message(thread.id, 0, thread.title, thread.author, article.datetime, signature='URL: %s' % article.url, content=''.join([thread.body, thread.part2])) + yield Message(thread.id, + 0, + thread.title, + thread.author, + article.datetime, + content=''.join([thread.body, thread.part2]), + signature='URL: %s' % article.url) for comment in thread.iter_all_comments(): - yield Message(thread.id, comment.id, comment.title, comment.author, comment.date, comment.reply_id, comment.body) + yield Message(thread.id, + comment.id, + comment.title, + comment.author, + comment.date, + comment.reply_id, + comment.body, + 'Score: %d' % comment.score) def iter_new_messages(self): return self.iter_messages()