-
Notifications
You must be signed in to change notification settings - Fork 40
Updated package to support media:content tag #71
base: main
Are you sure you want to change the base?
Conversation
|
Added classes to support all media tags |
|
Hi Team, Let me know if this works for your or let me know if I should withdraw the PR. Thanks |
|
I just haven’t had a chance to look at it yet. No need to withdraw! I’m just slow :) |
| static const NSInteger kEnclosureLength = 10; | ||
|
|
||
| static const char *kMediaContent = "media"; | ||
| static const NSInteger kMediaContentLength = 10; |
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.
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; |
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.
The 10 should be 6.
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.
kMediaCreditLengt is missing an h at the end — should be kMediaCreditLength
Updated logic to parse media:content tag on RSSParser.
Created a new object (RSParsedMediaContent) and use it to add attachments elements when they exist.