From 3581f34db7ded0c9e175f3040a100e45864bc0c4 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 11 Nov 2018 16:46:23 +0100 Subject: [PATCH] Various feeds.py related fixes --- morss/feedify.py | 2 +- morss/morss.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/morss/feedify.py b/morss/feedify.py index 90739f8..e14fe1b 100644 --- a/morss/feedify.py +++ b/morss/feedify.py @@ -137,7 +137,7 @@ class Builder(object): elif self.rule['mode'] == 'json': self.doc = json.loads(self.data) - self.feed = feeds.FeedParserAtom() + self.feed = feeds.FeedXML() def raw(self, html, expr): " Returns selected items, thru a stupid query " diff --git a/morss/morss.py b/morss/morss.py index c84e896..35b8c42 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -552,7 +552,7 @@ def cgi_app(environ, start_response): rss = FeedFetch(url, options) if headers['content-type'] == 'text/xml': - headers['content-type'] = rss.mimetype + headers['content-type'] = rss.rules['mimetype'][0] start_response(headers['status'], list(headers.items()))