Add support for JSON APIs in feedify

This commit is contained in:
2013-10-21 21:28:43 +02:00
parent 1802827d31
commit 1f40f2a099
2 changed files with 133 additions and 40 deletions

View File

@@ -410,8 +410,9 @@ def Gather(url, cachePath, options):
if style == 'normal':
rss = feeds.parse(xml)
elif style == 'feedify':
xml = decodeHTML(xml)
rss = feedify.build(url, xml)
feed = feedify.Builder(url, xml)
feed.build()
rss = feed.feed
elif style == 'html':
match = lxml.html.fromstring(xml).xpath("//link[@rel='alternate'][@type='application/rss+xml' or @type='application/atom+xml']/@href")
if len(match):