feeds: fix issues when mode not explicited in ruleset

master
pictuga 2021-08-29 00:20:29 +02:00
parent 6f50443995
commit d5942fe5a7
1 changed files with 1 additions and 1 deletions

View File

@ -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):