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

Library returning incorrect href #269

Open
raizadattn opened this issue Feb 7, 2024 · 0 comments
Open

Library returning incorrect href #269

raizadattn opened this issue Feb 7, 2024 · 0 comments

Comments

@raizadattn
Copy link

raizadattn commented Feb 7, 2024

I have observed, sometimes a rss feed contains multiple href links ( atom:link ), some of them redirects to new feedUrl, but some of those are invalid ( link type as 'text/html' ) .

Since the library returns only the first href based on the code below, how can we get ( or parse and check) , the rest of the href urls?

For ex - i parsed url1, it contains two hrefs, url2 ( incorrect as it its type is 'text/html' ), and url3 ( new correct one), but the library will return url2, how can i reach url3 and update the new episodes and podcast metadata?

      if (channel['atom:link'] && channel['atom:link'][0] && channel['atom:link'][0].$) {
        feed.feedUrl = channel['atom:link'][0].$.href;
      }
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