FAQ  •  Register  •  Login

TVOntario plugin

<<

tvoguy

Serviio newbie

Posts: 1

Joined: Sun Feb 26, 2012 2:37 am

Post Sun Feb 26, 2012 4:00 am

TVOntario plugin

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)
Attachments
TVO.groovy
(4.17 KiB) Downloaded 547 times
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Feb 26, 2012 11:30 am

Re: TVOntario plugin

Yes, it is a bug in one of the libraries I'm using for parsing feeds: http://java.net/jira/browse/ROME-126

Return to Plugin development

Who is online

Users browsing this forum: No registered users and 15 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.