From d5942fe5a7dd5df55f9b8b97472e5afea6296c84 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 29 Aug 2021 00:20:29 +0200 Subject: [PATCH] feeds: fix issues when mode not explicited in ruleset --- morss/feeds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/feeds.py b/morss/feeds.py index dab4062..f738ebe 100644 --- a/morss/feeds.py +++ b/morss/feeds.py @@ -462,7 +462,7 @@ class ParserXML(ParserBase): def rule_str(self, rule): match = self.rule_search(rule) - html_rich = ('atom' in rule or self.rules['mode'] == 'html') \ + html_rich = ('atom' in rule or self.mode == 'html') \ and rule in [self.rules.get('item_desc'), self.rules.get('item_content')] if isinstance(match, etree._Element):