Some RSS feeds don't display

Bug #1098892 reported by Dan Garner
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Xibo
Won't Fix
Undecided
Dan Garner
Dan Garner (dangarner)
Changed in xibo:
milestone: none → 1.4.2
Revision history for this message
Sai Phaninder Reddy (jspreddy) wrote :

This is happening because os the presence of html tags in the rss feed. Fix is to strip the html tags in the rss feed, like so:

temp = temp.Replace("[Title]", Strip(item.Title));

Changed in xibo:
assignee: nobody → Sai Phaninder Reddy (jspreddy)
status: New → Confirmed
Revision history for this message
Sai Phaninder Reddy (jspreddy) wrote :

private String Strip(string text)
        {
            return Regex.Replace(text, @"<[^>]*>"," ");
        }

Changed in xibo:
status: Confirmed → In Progress
Revision history for this message
Dan Garner (dangarner) wrote :

Unfortunately it is valid to have HTML in the RSS feed.

The first feed works fine - the second feed is not valid: http://validator.w3.org/appc/check.cgi?url=http%3A%2F%2Fwww.spiegel.de%2Fpolitik%2Findex.rss

Changed in xibo:
status: In Progress → Invalid
Dan Garner (dangarner)
Changed in xibo:
assignee: Sai Phaninder Reddy (jspreddy) → Dan Garner (dangarner)
Revision history for this message
Sai Phaninder Reddy (jspreddy) wrote :

oh, ok.
Then its better to provide an option where the rss ticker only displays the text, cause most of times people want to put that ticket at the very bottom as a left scroll with only text.

Revision history for this message
Sai Phaninder Reddy (jspreddy) wrote :

Bug Replication #1:
Use this feed..
http://news.yahoo.com/rss/topstories

in a bottom bar of height : 50 , width : full width of screen.

Since it has images, when ever an image comes up the feed automatically switches to next line and never gets displayed.

Bug Replication #2:
Use the same feed
http://news.yahoo.com/rss/topstories

in a region that spans the full width and height of the layout.

Changed in xibo:
status: Invalid → New
Revision history for this message
Dan Garner (dangarner) wrote :

I see your point - but I don't think it can be within the current implementation to change the content of the feed. It would be nice to add some feed manipulation into Xibo, but it will always fall short of more sophisticated tools (such as Yahoo Pipes).

This bug is really about feeds not being downloaded and parsed correctly (and therefore not showing at all).

We could look to add a feed manipulation tool into the Xibo server at some later release - I think there is already a blueprint for this somewhere, but if not then please feel free to add it. There is a fundamental issue with displaying feeds that contain images - they are not cached and therefore dont work in offline mode.

As it stands right now (as a result of this and some other bugs) there have been changes to the code for 1.4.2 which improve the overall support for parsing feeds. There isn't anything for altering the feed content.

Revision history for this message
Dan Garner (dangarner) wrote :

I think that maybe this blueprint could cover some basic content manipulation. I will target it to a Series for development. https://blueprints.launchpad.net/xibo/+spec/rss-variable-extensions

Changed in xibo:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.