Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Updated package to support media:content tag #71

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bubudrc
Copy link

@bubudrc bubudrc commented Apr 7, 2022

Updated logic to parse media:content tag on RSSParser.

Created a new object (RSParsedMediaContent) and use it to add attachments elements when they exist.

@bubudrc
Copy link
Author

bubudrc commented Apr 7, 2022

Added classes to support all media tags

@bubudrc
Copy link
Author

bubudrc commented May 16, 2022

Hi Team,

Let me know if this works for your or let me know if I should withdraw the PR.

Thanks

@brentsimmons
Copy link
Collaborator

I just haven’t had a chance to look at it yet. No need to withdraw! I’m just slow :)

@@ -168,6 +172,12 @@ - (RSParsedFeed *)parseFeed {
static const char *kEnclosure = "enclosure";
static const NSInteger kEnclosureLength = 10;

static const char *kMediaContent = "media";
static const NSInteger kMediaContentLength = 10;
Copy link
Collaborator

Choose a reason for hiding this comment

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

The 10 should be 6 — m-e-d-i-a plus a null character is 6 characters.

static const NSInteger kMediaContentLength = 10;

static const char *kMediaCredit = "credit";
static const NSInteger kMediaCreditLengt = 10;
Copy link
Collaborator

Choose a reason for hiding this comment

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

The 10 should be 6.

Copy link
Collaborator

Choose a reason for hiding this comment

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

kMediaCreditLengt is missing an h at the end — should be kMediaCreditLength

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants