Various feeds.py related fixes

master
pictuga 2018-11-11 16:46:23 +01:00
parent 966559bdd3
commit 3581f34db7
2 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ class Builder(object):
elif self.rule['mode'] == 'json': elif self.rule['mode'] == 'json':
self.doc = json.loads(self.data) self.doc = json.loads(self.data)
self.feed = feeds.FeedParserAtom() self.feed = feeds.FeedXML()
def raw(self, html, expr): def raw(self, html, expr):
" Returns selected items, thru a stupid query " " Returns selected items, thru a stupid query "

View File

@ -552,7 +552,7 @@ def cgi_app(environ, start_response):
rss = FeedFetch(url, options) rss = FeedFetch(url, options)
if headers['content-type'] == 'text/xml': 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())) start_response(headers['status'], list(headers.items()))