Reeywhaar / want-my-rss

RSS features for Firefox
Other
113 stars 10 forks source link

No RSS intercepted #7

Closed happysurf closed 5 years ago

happysurf commented 5 years ago

To http://www.freshremix.ru/ pages no RSS is show because I get this error:

Error while parsing feed http://www.freshremix.ru/house/rss.xml

Reeywhaar commented 5 years ago

Feed is corrupted and is not valid xml. You can see that it starts with php warning for timezone: view-source:http://www.freshremix.ru/rss.xml Technically it's their fault, although I can think of some hack 🤔

happysurf commented 5 years ago

You are right, in fact not pass the validation at https://validator.w3.org/feed/, but the strange thing is that in Netvibes works fine.

Reeywhaar commented 5 years ago

It works in Feedly too. I think it's a common thing in rss, and Feedly and Netvibes as commercial products try to accomodate to the reality :-)

Reeywhaar commented 5 years ago

Ha, they seem to be to fix the issue. Would be helpful to know is this a common thing in the wild. I could've try to parse from first index of <?xml header and assume that it may be not the first characters.

Reeywhaar commented 5 years ago

Applied loose parsing, for the case when rss starts not with xml header. I think this is the most I can do :-) https://github.com/Reeywhaar/want-my-rss/commit/42566ef5d285dfacb44e35e00ae9ec7893d48eb9