Fix bug when parsing startpage

This commit is contained in:
ibu 2021-12-25 11:23:37 +00:00
parent 2f3e1d368e
commit 08ca7fee56

View file

@ -48,7 +48,7 @@ async def parse_startpage(
# feeds # feeds
feeds = meta_links['feeds'] feeds = meta_links['feeds']
if 'wordpress' in meta.get('generator', '').lower(): if 'wordpress' in (meta.get('generator') or '').lower():
url = durl.site() + 'feed/' url = durl.site() + 'feed/'
feeds[url] = 'application/rss+xml' feeds[url] = 'application/rss+xml'
# TODO later: maybe also probe other possible feed paths 'rss', 'rss/' # TODO later: maybe also probe other possible feed paths 'rss', 'rss/'