Repository navigation
Preserve multiple media:content entries - #344
Conversation
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3440faae7c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@Xiryl thank you so much for the contributions, it was a missed point. And so sorry for the late reply, I kinda missed this 😓 I'll do some improv and cut a release soon |
…media rawMediaContent is now a computed accessor over the first entry of rawMediaContents, so copy() and direct construction can no longer leave the two out of sync. media:content elements that carry only width/height are kept instead of being dropped.
Hi!
This PR preserves all Media RSS
<media:content>elements for each item.RssItemnow exposes:Each entry includes
url,type,medium,width, andheight.The existing
rawMediaContentproperty is kept for compatibility and returns the first entry.Why
Feeds can publish several renditions of the same image. For example, The Guardian RSS feed provides the same article image at 140px, 460px, and 700px.
Example XML from The Guardian feed
Previously, only the first rendition was retained, so consumers could only access the 140px image. With
rawMediaContents, they can choose the best variant:The change is implemented on Android, JVM, Apple, JS, and Wasm, with test coverage for multiple image sizes.