Skip to content

Conversation

fabioricali
Copy link

Hi,
this PR add a new property with all enclosure items.

Copy link
Owner

@rbren rbren left a comment

Choose a reason for hiding this comment

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

Good catch! Wish I'd noticed that multiple enclosures are allowed before.

Would you mind adding a test with multiple enclosures? Want to make sure this code gets exercised so we don't break it down the line.

let item = {};
utils.copyFromXML(xmlItem, item, itemFields);
if (xmlItem.enclosure) {
if (!Array.isArray(item.enclosureList)) {
Copy link
Owner

Choose a reason for hiding this comment

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

I think we can safely remove this guard.

@stweiz
Copy link

stweiz commented Nov 13, 2024

This seems to be the solution for #254, which still is an open topic. Was there a reason, except the open comment, why it wasn't merged?

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