FAQ  •  Register  •  Login

Valid XML for Plugin

<<

htb

Serviio newbie

Posts: 9

Joined: Mon Sep 26, 2011 8:49 pm

Post Mon Sep 26, 2011 9:05 pm

Valid XML for Plugin

Hi zip,
great job with V0.6. :D :D :D

Many sites does not have a rss/atom/... interface. It is only possible to search their index via webbrowser (html data).
My idea was to add such query web-page as feed-url, plugin says "yep I know such an url" and the plugin extract all the date from the html-document.

For testing I've added a catch-all plugin (exractorMatches reaturns always true) ([PluginCompilerThread] Added plugin ARDMediathekExctractor (ARDMediathek.groovy)) and add the site "http://www.ardmediathek.de/ard/servlet/content/3517006?s=DTM" via Serviio-Console. But serviio says
  Code:
java.io.IOException: Cannot parse feed from http://www.ardmediathek.de/ard/servlet/content/3517006?s=DTM. Message: Error during feed parsing : Invalid XML: Error on line 375: The element type "li" must be terminated by the matching end-tag "</li>".

But IMHO Serviio should not be interested in this (html)content if there is a valid plugin. Serviio must only pass the url to the plugin.
Is it indented? Is it my fault?

bye
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Sep 26, 2011 9:58 pm

Re: Valid XML for Plugin

Serviio always expects a valid XML feed. It parses it, retireves name, links, thumbnail, etc and then invokes the plugin for each feed entry.

Something that you want to accomplish is not possible yet. There might be a new type (other than RSS/Atom feed), e.g. Webpage, that would then need a plugin implementing a different interface.
<<

htb

Serviio newbie

Posts: 9

Joined: Mon Sep 26, 2011 8:49 pm

Post Tue Sep 27, 2011 4:41 am

Re: Valid XML for Plugin

So we have to create a ticket :-D
bye
<<

FlamingLizard

Streaming enthusiast

Posts: 36

Joined: Sat Sep 24, 2011 8:19 pm

Location: Gothenburg, Sweden

Post Tue Sep 27, 2011 11:10 am

Re: Valid XML for Plugin

I would also be very interested in support for something like this. Some sites simply don't publish rss-feeds for(all) their content.

A new type of online source "Webpage" sounds like it could be a hit. To make it simple it could just have a name-function, a validator-function(to see if it handles a page) and one function getting passed the page and which returns a list/collection of ExtendedContentURLContainer (extended with title/description).

This was just a rough idea, but it would eliminate the need for intermediate generation of rss-feeds, which is what I'm struggling with for the SvtPlay-plugin to handle the good stuff on that site.
Tomas
Samsung LE46B650
Serviio 0.6 on Win7x64 ultimate
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Sep 27, 2011 11:48 am

Re: Valid XML for Plugin

yep, something like that. I'll see if I can sqeeze it in 0.6.1

https://bitbucket.org/xnejp03/serviio/i ... -page-urls

Comment on the ticket if you want something specific to be implemented
<<

kairoh

DLNA master

Posts: 180

Joined: Sun Aug 08, 2010 10:41 am

Location: France

Post Wed Sep 28, 2011 3:22 pm

Re: Valid XML for Plugin

zip wrote:yep, something like that. I'll see if I can sqeeze it in 0.6.1

This can be a source of inspiration.
Serviio WebUI console developer : New Homepage | Support | Project | Issues

Samsung UA32C6600 | WinXP / Ubuntu 11.10 | Samsung Galaxy S | Freebox v6
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging

Return to Plugin development

Who is online

Users browsing this forum: No registered users and 22 guests

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