SlyMarbo / rss

A Go library for fetching, parsing, and updating RSS feeds.
Other
399 stars 85 forks source link

Attempting to fetch certain feed blocks indefinitely #84

Closed biox closed 5 months ago

biox commented 5 months ago

hi! i recently attempted to fetch a certain feed, and slymarbo/rss blocks indefinitely - here's a reproducible example:

package main

import (
    "github.com/SlyMarbo/rss"
    "log"
)

func main() {
    feed, err := rss.Fetch("https://www.idealista.pt/news/rss/v2/latest-news.xml")
    if err != nil {
        log.Println(err)
    }

    err = feed.Update()
    if err != nil {
        log.Println(err)
    }
}

i've attached the XML of that feed as it exists today, in case the example i've provided stops reproducing: bad-xml.txt

SlyMarbo commented 5 months ago

Thanks for reporting this. Sorry for the silly bug. It should be fixed now.