Skip to content
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

Add enclosureList property #168

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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.

@@ -198,6 +198,12 @@ class Parser {
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