Various feeds.py related fixes
parent
966559bdd3
commit
3581f34db7
|
@ -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 "
|
||||||
|
|
|
@ -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()))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue