-
Notifications
You must be signed in to change notification settings - Fork 6
Add author/dc:creator support to fulltext feed output using feedsmith #964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Copilot
wants to merge
11
commits into
master
Choose a base branch
from
copilot/add-author-element-to-fulltext-feed
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
c55df2b
Initial plan
Copilot 0fefe72
Add author/dc:creator support to fulltext feed output
Copilot d152925
Refactor: extract author utilities to separate module, fix CDATA inje…
Copilot 8d414eb
Plan: Replace feed library with feedsmith for native dc:creator support
Copilot 4ca6317
Replace feed library with feedsmith for native dc:creator support
Copilot 5aef183
Fix build: upgrade TypeScript to 5.x for feedsmith compatibility
Copilot 0d10fee
Address review: remove skipLibCheck, delete author.test.ts, use sprea…
Copilot 376d0ac
plan: fix feed processing for UN, FreshRSS, and AliasVault feeds
Copilot 6072ca5
Fix feed processing: add gzip support, Atom author/guid mapping, clea…
Copilot a28a9bf
Remove gzip handling from application code, revert to parser.parseURL()
Copilot 5b70a82
Remove customFields, use rss-parser generic type for Atom fields
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| # Agents | ||
|
|
||
| ## Success Criteria for Feed Processing | ||
|
|
||
| The fulltext RSS proxy must be able to process the following feeds without any issue, with full content retrieved, and essential fields kept: | ||
|
|
||
| ### Test Feeds | ||
|
|
||
| 1. **UN News RSS** — `https://news.un.org/feed/subscribe/en/news/all/rss.xml` | ||
| - Standard RSS 2.0 feed | ||
|
|
||
| 2. **FreshRSS Atom** — `https://github.com/FreshRSS/FreshRSS/releases.atom` | ||
| - Atom feed format | ||
| - Author is in `<author><name>...</name></author>` (mapped to `item.author` by rss-parser, not `item.creator`) | ||
| - Entry ID is in `<id>` (mapped to `item.id`, not `item.guid`) | ||
|
|
||
| 3. **AliasVault RSS** — `https://www.aliasvault.net/rss.xml` | ||
| - RSS 2.0 with `<dc:creator>` elements (Dublin Core namespace) | ||
| - Has categories per item | ||
| - `item.creator` maps directly from rss-parser | ||
|
|
||
| ### Essential Fields | ||
|
|
||
| For each feed item in the output: | ||
|
|
||
| | Field | RSS Output | JSON Feed Output | | ||
| |-------|-----------|-----------------| | ||
| | Title | `<title>` | `title` | | ||
| | Link | `<link>` | `url` | | ||
| | Date | `<pubDate>` | `date_published` | | ||
| | Full content | `<content:encoded>` | `content_html` | | ||
| | Description | `<description>` | `summary` | | ||
| | Author/Creator | `<dc:creator>` | `authors[].name` | | ||
| | Categories | `<category>` | `tags` | | ||
| | GUID/ID | `<guid>` | `id` | | ||
|
|
||
| ### Author Handling | ||
|
|
||
| - RSS feeds with `<dc:creator>`: mapped via `item.creator` from rss-parser | ||
| - Atom feeds with `<author>`: mapped via `item.author` from rss-parser (fallback when `item.creator` is absent) | ||
| - Output as `<dc:creator>` in RSS and `authors` array in JSON Feed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use ...item here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in
0d10fee— now uses...itemspread with overrides for transformed fields (date,content,description).