From 221e1f85ad6b647fcb665e41813fcab169d64fd9 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 11 Nov 2018 15:26:09 +0100 Subject: [PATCH] feeds: fix implementation in morss --- morss/morss.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/morss/morss.py b/morss/morss.py index c48a733..c5924ce 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -164,7 +164,7 @@ def ItemFix(item, feedurl='/'): # feedburner feeds.NSMAP['feedburner'] = 'http://rssnamespace.org/feedburner/ext/1.0' - match = item.xval('feedburner:origLink') + match = item.rule_str('feedburner:origLink') if match: item.link = match @@ -345,7 +345,7 @@ def FeedFetch(url, options): rss = feed.feed elif re.match(b'\s*<\?xml', xml) is not None or contenttype in crawler.MIMETYPE['xml']: - rss = feeds.parse(xml) + rss = feeds.FeedXML(xml) elif options.items: # using argument-based feedify