feeds: clean up default `item_link`
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
To be supported by feeds' `_rule_parse`master
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…
Reference in New Issue