Support discovering multiple RSS feeds from HTML autodiscovery tags

Aperta
#4,893 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
backend

Direzione di ricerca

Start by tracing Folo's Discover flow for HTML RSS autodiscovery. Check how alternate RSS links are collected and presented when a page declares multiple feeds. Done means all qualifying feeds, including the English and Chinese examples, are discovered and offered for selection rather than only the first link.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Problem

When searching a domain (e.g., mjshao.fun) in Folo's Discover, only the first <link rel="alternate" type="application/rss+xml"> tag is discovered, even when the page declares multiple feeds.

My site has two RSS feeds — English and Chinese:

<link rel="alternate" type="application/rss+xml" title="Mingjian Shao's Writing (English)" href="/rss.xml"/>
<link rel="alternate" type="application/rss+xml" title="Mingjian Shao's Writing (中文)" href="/rss-cn.xml"/>
  • ✅ /rss.xml is discovered via domain search
  • ❌ /rss-cn.xml is not discovered (works when added manually via direct URL)

Expected Behavior

Folo should discover all <link rel="alternate"> feeds declared in the HTML <head> and present them to the user for selection — similar to how Feedly, Inoreader, and Firefox handle multiple autodiscovery links.

RSS Autodiscovery Spec

The RSS Advisory Board spec explicitly supports multiple feeds:

"A head may include more than one autodiscovery link, but each must identify a different feed."

"If you decide to include more than one autodiscovery link, the first link should be the site's main feed."

"When a page contains more than one autodiscovery link, the title enables users to differentiate between the feeds."

Use Cases

  • Multilingual sites (EN + CN feeds, like mine)
  • Content type variants (full articles vs. headlines)
  • Category feeds (tech, design, etc.)

Prior Art

A nearly identical issue was reported and fixed in bridgy-fed#2255 — their backend also only read the first <link rel="alternate"> tag.

Environment

Lingua principale
TypeScript
Stelle
39.3k
Fork
2.2k
Merge medio
9h 14m
PR unite (30g)
16

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di RSSNext/Folo

Tutte le issue di RSSNext/Folo

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.