feeds: clean up default item_link
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
To be supported by feeds' `_rule_parse`
This commit is contained in:
parent
32d9bc9d9d
commit
bfaf7b0fac
@ -290,7 +290,7 @@ def FeedFetch(url, options):
|
|||||||
ruleset['desc'] = options.get('desc', '//head/meta[@name="description"]/@content')
|
ruleset['desc'] = options.get('desc', '//head/meta[@name="description"]/@content')
|
||||||
|
|
||||||
ruleset['item_title'] = options.get('item_title', '.')
|
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:
|
if options.item_content:
|
||||||
ruleset['item_content'] = options.item_content
|
ruleset['item_content'] = options.item_content
|
||||||
|
Loading…
x
Reference in New Issue
Block a user