Page 1 of 1

TVOntario plugin

PostPosted: Sun Feb 26, 2012 4:00 am
by tvoguy
TVOntario is a public service TV station. It has several program RSS feeds with mp4 links directly provided in the feed.

However, for reasons that's unclear, Serviio 0.6.2 can not parse the RSS feed properly.
I believe it's serviio bug. Until it's fixed, you can't write a RSS plugin to solve the problem.

I wrote a plugin that treats the RSS feeds as a Web Resource (i.e. a generic web page). It parses the page and generates all the URLs and items. Because the parsing is rather dumb, please treat the plugin as a stopgap measure.
The proper way is to fix serveriio 0.62. A plugin is not necessary for TVO RSS feeds.


The tested & supported RSS feeds are: TVO Big Ideas, TVO Alan Gregg, TVO The Agenda.

http://feeds.tvo.org/tvobigideasVideo?format=xml
http://feeds.tvo.org/podcasts/video/All ... format=xml
http://feeds.tvo.org/tvo/TxZN
http://feeds.tvo.org/tvo/thinkAgain (low video quality)

The tested URLs can also be found in the main() routine of the plugin.

Fan

---

PS. If you configure the URLs as RSS feeds, the following errors appear in the log.

2012-02-19 21:26:02,392 WARN [FeedUpdaterThread] An error occured while scanning for online item information, will continue
java.io.IOException: Cannot parse resource from http://feeds.tvo.org/tvobigideasVideo?format=xml. Message: Error during feed parsing, provided URL probably doesn't point to a valid RSS/Atom feed. Message: Invalid XML
at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:177)
at org.serviio.library.online.OnlineLibraryManager.findResourceInCacheOrParse(OnlineLibraryManager.java:184)
at org.serviio.library.online.metadata.FeedUpdaterThread.getOnlineItems(FeedUpdaterThread.java:158)
at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:95)

Re: TVOntario plugin

PostPosted: Sun Feb 26, 2012 11:30 am
by zip
Yes, it is a bug in one of the libraries I'm using for parsing feeds: http://java.net/jira/browse/ROME-126