From ecd59009fb66fecb231f7e253bb32cbfc1c76c28 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 26 Feb 2024 16:58:39 +0100 Subject: [PATCH] Add a couple of new possible locations for feeds - Hugo likes to generate index.xml - feed.atom and feed.rss are used by enterprise-scale/old-school gigantic CMS --- internal/reader/subscription/finder.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/internal/reader/subscription/finder.go b/internal/reader/subscription/finder.go index 89b5f196..c1f164c2 100644 --- a/internal/reader/subscription/finder.go +++ b/internal/reader/subscription/finder.go @@ -196,11 +196,14 @@ func (f *SubscriptionFinder) FindSubscriptionsFromWebPage(websiteURL, contentTyp func (f *SubscriptionFinder) FindSubscriptionsFromWellKnownURLs(websiteURL string) (Subscriptions, *locale.LocalizedErrorWrapper) { knownURLs := map[string]string{ - "atom.xml": parser.FormatAtom, - "feed.xml": parser.FormatAtom, - "feed/": parser.FormatAtom, - "rss.xml": parser.FormatRSS, - "rss/": parser.FormatRSS, + "atom.xml": parser.FormatAtom, + "feed.xml": parser.FormatAtom, + "feed/": parser.FormatAtom, + "rss.xml": parser.FormatRSS, + "rss/": parser.FormatRSS, + "index.rss": parser.FormatRSS, + "index.xml": parser.FormatRSS, + "feed.atom": parser.FormatAtom, } websiteURLRoot := urllib.RootURL(websiteURL)