Fix RSS validation: update itunes:explicit format to boolean#3432
Fix RSS validation: update itunes:explicit format to boolean#3432tzarebczan merged 3 commits intoOdyseeTeam:masterfrom
Conversation
Changes 'itunes:explicit' value from 'yes'/'no' to 'true'/'false' to comply with current iTunes/Apple Podcasts requirements. Fixes OdyseeTeam#2982
📝 WalkthroughWalkthroughUpdated RSS/feed-related behavior: the itunes:explicit tag now uses "true"/"false" instead of "yes"/"no", and the static file middleware now sets Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Adds 'defer: true' to koa-static configuration to allow dynamic routes (like /$/rss/:claimName/:claimId) to be matched before static files. This fixes RSS feed validators returning 404 HTML instead of XML when accessing URLs with encoded characters (e.g., spaces as %20). Part of OdyseeTeam#2982
|
Added a second commit to fix the encoded URL 404 issue mentioned in the original issue. Additional fixAdded What this solvesWhen RSS validators access URLs with encoded characters (e.g., Changes summary
All three issues from #2982 are now covered. |
|
Fails on lint/CI: lint: web/index.js#L6 |
6e0000c to
815230a
Compare
|
@tom-z You're absolutely right, and thank you for catching this! After investigation, I discovered that during a merge from What happened:
What I fixed:
The lint error should now be resolved. CI checks should pass. Apologies for the oversight! |
Description
Fixes RSS feed validation issues for iTunes/Apple Podcasts Connect.
Changes
This PR addresses all three issues mentioned in #2982:
iTunes explicit format: Updates
itunes:explicittag format from'yes'/'no'to'true'/'false'to comply with current iTunes podcast requirements.Encoded URL 404 fix: Adds
defer: trueto koa-static configuration to allow dynamic routes (like RSS feeds) to be matched before attempting to serve static files. This fixes RSS validators returning 404 HTML instead of XML when accessing URLs with encoded characters.Language tag: Already present in the codebase with
'en'fallback (no changes needed).Modified
web/src/rss.js(line 172): ChangedgenerateItunesExplicitElementreturn valueweb/index.js(line 36): Addeddefer: trueto koa-static configurationTesting
RSS feed validation can be confirmed using:
Test URLs with encoded characters:
/$/rss/My%20Channel/abc123should return XML, not 404 HTMLRelated Issue
Closes #2982
Checklist