From 2dd9ae202db0c9e71dee897b73b85ae01093200f Mon Sep 17 00:00:00 2001 From: pictuga Date: Wed, 18 Mar 2020 16:24:08 +0100 Subject: [PATCH] feeds: add 'mode' to Parsers --- morss/feeds.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/morss/feeds.py b/morss/feeds.py index 3020f9e..f4c3195 100644 --- a/morss/feeds.py +++ b/morss/feeds.py @@ -221,6 +221,7 @@ class ParserBase(object): class ParserXML(ParserBase): default_ruleset = 'rss-channel' + mode = 'xml' mimetype = ['text/xml', 'application/xml', 'application/rss+xml', 'application/rdf+xml', 'application/atom+xml', 'application/xhtml+xml'] @@ -379,6 +380,7 @@ def parse_time(value): class ParserJSON(ParserBase): default_ruleset = 'json' + mode = 'json' mimetype = ['application/json', 'application/javascript', 'text/javascript'] def parse(self, raw):