Skip to content

feat(parser): support phase 8 podcast follow#3

Open
nathangathright wants to merge 1 commit into
podverse:developfrom
TeamPodlink:codex/add-podcast-follow-phase8
Open

feat(parser): support phase 8 podcast follow#3
nathangathright wants to merge 1 commit into
podverse:developfrom
TeamPodlink:codex/add-podcast-follow-phase8

Conversation

@nathangathright
Copy link
Copy Markdown

Summary

  • Add parser support for the phase 8 podcast:follow tag.
  • Expose the parsed follow endpoint as feed.podcastFollow.url.
  • Report phase 8 support for follow only when a valid url attribute is present.
  • Add tests for missing tags, missing/empty URLs, multiple tags, and known live-feed examples from Podnews and PRX/Radiotopia.

Verification

  • npm test -- src/parser/phase/__test__/phase-8.test.ts
  • Live feed check: https://podnews.net/rss parsed https://podnews.net/podcast/i8xe9/follow.json
  • Live feed check: http://feeds.radiotopia.fm/radiotopia-showcase parsed https://f.prxu.org/72/subscribelinks.json

Add parsing for the pending/recommended Phase 8 <podcast:follow> tag at channel level. The tag points to a JSON document containing follow links for a podcast.

Regression test feeds: phase-8 tests splice PRX/Dovetail's deployed example <podcast:follow url="https://f.prxu.org/72/subscribelinks.json"/> and Podnews's deployed example <podcast:follow url="https://podnews.net/podcast/i8xe9/follow.json"/> into the sample feed. Tests also cover missing, empty, whitespace-only, and duplicate tag cases.

Spec context: Podcast Namespace discussion #671 lists NathanG's follow tag for Phase 8, and discussion #609 is labeled recommended/phase8.

Verified with: npm test -- --runTestsByPath src/parser/phase/__test__/phase-8.test.ts --runInBand; npm run lint:typecheck
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.

1 participant