diff --git a/weboob/backends/dlfp/backend.py b/weboob/backends/dlfp/backend.py index 98fa067e..957a548e 100644 --- a/weboob/backends/dlfp/backend.py +++ b/weboob/backends/dlfp/backend.py @@ -28,6 +28,6 @@ class DLFPBackend(Backend, ICapMessages, ICapMessagesReply): def iter_new_messages(self, thread=None): articles_list = ArticlesList('newspaper') - for id, author, title in articles_list.iter_articles(): - yield Message('threadid', id, title, author, signature='Bite bite bite bite', + for article in articles_list.iter_articles(): + yield Message('threadid', article._id, article.title, article.author, signature='Bite bite bite bite', content='Content content\nContent content.') diff --git a/weboob/backends/dlfp/feeds.py b/weboob/backends/dlfp/feeds.py index f067cbc6..c40e7634 100644 --- a/weboob/backends/dlfp/feeds.py +++ b/weboob/backends/dlfp/feeds.py @@ -61,4 +61,4 @@ class ArticlesList: continue _id = m.group(1) article = klass(_id, item['link'], item['title'], item['author'], item['date_parsed']) - yield _id, item['author'], item['title'] + yield article