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

Multiple enclosure tags get overwritten #254

Open
black-hawk85 opened this issue Sep 7, 2023 · 0 comments
Open

Multiple enclosure tags get overwritten #254

black-hawk85 opened this issue Sep 7, 2023 · 0 comments

Comments

@black-hawk85
Copy link

I need to parse an RSS to JSON which has multiple enclosure tags within an item

<item>
<title>...</title>
<enclosure url="..." type="..." />
<enclosure url="..." type="..." />
<enclosure url="..." type="..." />
</item>

My resulted JSON Object only has a single enclosure object instead of an array.
I tried using keepArray option already but it still happens.

It seems it gets overwritten in parser.js

item.enclosure = xmlItem.enclosure[0].$;

It's hard coded taking only the first enclosure item

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

No branches or pull requests

1 participant