Join GitHub today
Error parsing a particular rss feed (not all feeds) #281
Ref: NZBGet 18.0-testing
First caught my eye in Messages ... [error] "Error parsing rss feed: Declaration has an invalid name."
I go to Settings / RSS Feeds to search which feed the error is referring to (consider adding the Feed number to the error msg e.g. "Error parsing rss feed [n]")
I click "Change" on each feed in turn until a dialog displays ... title: "Error" ... body: "Could not read feed"
The Feed URL does render as expected in a browser and used to work fine in the app.
It may be that there has been no change in the apps RSS parser and that the change is at the server side, however, this issue highlights something amiss in the parser and shows the browser is more forgiving.
Nzbget uses libxml2 to parse rss. An error can only mean that the xml is invalid.
If you can send me the content of the feed I could try to debug this although I may be not able to make the invalid xml to work as the error comes from libxml and it may not have option to ignore such kind of errors.
In any case it would be better to fix the issue on server side if it indeed generates invalid xml.
Ahh, download rss page txt.
It may be that a particular element like say a CDATA block is throwing libxml off, perfectly legal but still causing issue. Therefore, the feed could to be "cleansed" before being passed to the parser, that way, all other sites with a similar markup would get fixed too, this would be preferable over chasing site owners who then have to chase newznab etc devs, etc. etc.
added a commit
Sep 19, 2016
It worked on Windows too.
I've improved error reporting:
If you compile nzbget yourself please compile from develop branch. Otherwise I can send you the current develop version. Send me a note to firstname.lastname@example.org.