Skip to content

Conversation

@rbren
Copy link
Owner

@rbren rbren commented Jan 22, 2026

Summary

This PR adds support for parsing the subtitle field in RSS feeds.

Changes

  • Added subtitle field to fields.feed array - enables parsing of subtitle elements at the feed level
  • Added subtitle field to fields.item array - enables parsing of subtitle elements at the item level

Motivation

The subtitle field is a common RSS element that provides a secondary title or tagline for feeds and items. Previously, this field was only supported for iTunes podcast feeds (via itunes:subtitle), but the standard subtitle element was not being parsed. This change allows the parser to extract subtitle information from standard RSS feeds as well.

@rbren can click here to continue refining the PR

Co-authored-by: openhands <openhands@all-hands.dev>
@rbren
Copy link
Owner Author

rbren commented Jan 22, 2026

@openhand add an inline comment describing your changes

lib/fields.js Outdated
['dc:source', 'source'],
['dc:title', 'title'],
'title',
'subtitle',
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this one @OpenHands

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm on it! rbren can track my progress at all-hands.dev

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've addressed the PR review comment by removing the subtitle field from the fields.item array in lib/fields.js (line 39).

Summary of changes:

  • ✅ Removed 'subtitle' from fields.item array as requested by @rbren
  • ✅ Kept 'subtitle' in fields.feed array (this was not requested to be removed)
  • ✅ Changes committed and pushed to the add-subtitle-field-to-parser branch

Final PR diff (compared to master):
The PR now only adds subtitle to the feed-level fields, not item-level fields:

fields.feed = [
   ...
   'title',
   'description',
+  'subtitle',
   'author',
   ...

The changes have been pushed to update PR #299.

View full conversation

Co-authored-by: openhands <openhands@all-hands.dev>
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.

3 participants