From bac247910b96fddd3ebd2e9861d77c296e98219f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Fri, 28 Mar 2025 16:54:39 -0700 Subject: [PATCH] fix(subscription): add `/rss/feed.xml` to the list of known feed URLs --- internal/reader/subscription/finder.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/internal/reader/subscription/finder.go b/internal/reader/subscription/finder.go index 3ca8f0cc..3e00170f 100644 --- a/internal/reader/subscription/finder.go +++ b/internal/reader/subscription/finder.go @@ -189,14 +189,15 @@ 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, - "index.rss": parser.FormatRSS, - "index.xml": parser.FormatRSS, - "feed.atom": parser.FormatAtom, + "atom.xml": parser.FormatAtom, + "feed.atom": parser.FormatAtom, + "feed.xml": parser.FormatAtom, + "feed/": parser.FormatAtom, + "index.rss": parser.FormatRSS, + "index.xml": parser.FormatRSS, + "rss.xml": parser.FormatRSS, + "rss/": parser.FormatRSS, + "rss/feed.xml": parser.FormatRSS, } websiteURLRoot := urllib.RootURL(websiteURL)