Procházet zdrojové kódy

fix(subscription): add `/rss/feed.xml` to the list of known feed URLs

Frédéric Guillot před 1 rokem
rodič
revize
51560f191f
1 změnil soubory, kde provedl 9 přidání a 8 odebrání
  1. 9 8
      internal/reader/subscription/finder.go

+ 9 - 8
internal/reader/subscription/finder.go

@@ -189,14 +189,15 @@ func (f *SubscriptionFinder) FindSubscriptionsFromWebPage(websiteURL, contentTyp
 
 
 func (f *SubscriptionFinder) FindSubscriptionsFromWellKnownURLs(websiteURL string) (Subscriptions, *locale.LocalizedErrorWrapper) {
 func (f *SubscriptionFinder) FindSubscriptionsFromWellKnownURLs(websiteURL string) (Subscriptions, *locale.LocalizedErrorWrapper) {
 	knownURLs := map[string]string{
 	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)
 	websiteURLRoot := urllib.RootURL(websiteURL)