Browse Source

morss: more flexible feed creator auto-detection

master
pictuga 3 weeks ago
parent
commit
985185f47f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      morss/morss.py

+ 2
- 2
morss/morss.py View File

@@ -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


Loading…
Cancel
Save