Skip to content

Classify RSS media enclosures as podcasts#45

Open
lazyGPT07 wants to merge 1 commit into
profullstack:masterfrom
lazyGPT07:codex/detect-rss-podcast-enclosures
Open

Classify RSS media enclosures as podcasts#45
lazyGPT07 wants to merge 1 commit into
profullstack:masterfrom
lazyGPT07:codex/detect-rss-podcast-enclosures

Conversation

@lazyGPT07

Copy link
Copy Markdown

What changed

  • detect audio and video enclosures on RSS items
  • classify those feeds as podcast
  • add a regression test using a representative iTunes RSS document

Why

The XML parser removes namespace prefixes, so checking for itunes:author is not reliable. RSS podcast enclosures also normally live on individual items rather than the channel. As a result, valid podcast feeds were returned with kind: "blog".

Impact

Feed discovery now labels ordinary RSS podcast feeds correctly without changing blog classification for feeds that lack media enclosures.

Validation

  • npm run build
  • npm test (68 tests passed)

Closes #44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RSS podcast feeds with media enclosures are classified as blogs

1 participant