feeds: clean up default `item_link`
continuous-integration/drone/push Build is failing Details

To be supported by feeds' `_rule_parse`
master
pictuga 2022-01-24 16:16:14 +00:00
parent 32d9bc9d9d
commit bfaf7b0fac
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ def FeedFetch(url, options):
ruleset['desc'] = options.get('desc', '//head/meta[@name="description"]/@content')
ruleset['item_title'] = options.get('item_title', '.')
ruleset['item_link'] = options.get('item_link', './@href|.//a/@href|ancestor::a/@href')
ruleset['item_link'] = options.get('item_link', '(.|.//a|ancestor::a)/@href')
if options.item_content:
ruleset['item_content'] = options.item_content