From 985185f47f9cf14ac4d1b1982f6cbe2de3810c2e Mon Sep 17 00:00:00 2001 From: pictuga Date: Mon, 8 Jun 2020 13:03:24 +0200 Subject: [PATCH] morss: more flexible feed creator auto-detection --- morss/morss.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/morss/morss.py b/morss/morss.py index 3cc796b..57adc1b 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -305,8 +305,8 @@ def FeedFetch(url, options): rss.rules['items'] = options.items - rss.rules['item_title'] = options.item_title if options.item_title else './/a|.' - rss.rules['item_link'] = options.item_link if options.item_link else './@href|.//a/@href' + rss.rules['item_title'] = options.item_title if options.item_title else '.' + rss.rules['item_link'] = options.item_link if options.item_link else './@href|.//a/@href|ancestor::a/@href' if options.item_content: rss.rules['item_content'] = options.item_content