FAQ  •  Register  •  Login

Thumbnails for WebResources

<<

r-win

User avatar

DLNA master

Posts: 100

Joined: Sun May 22, 2011 6:16 am

Location: Lelystad, Netherlands

Post Thu Nov 29, 2012 4:57 pm

Thumbnails for WebResources

Hi,

I've got a question about thumbnails. When creating a FeedItemUrlExtractor, you can pass a thumbnailUrl to the ContentURLContainer returned by extractUrl.

When creating a WebResourceUrlExtractor, you can do the same. However, with the WebResourceUrlExtractor, you can also add a thumbnail to the WebResourceContainer returned by extractItems method. It seems that the WebResourceUrlExtractor ignores the thumbnails specified in the ContentURLContainer, and returns the "global" thumbnail for all items, as returned in the WebResourceContainer.

I'm not sure if this is by design, or if this is a bug. It's also possible, of course, that I'm doing something wrong. The plugin which has this issue is the Uitzending Gemist plugin, posted here.
Linksys WRT320N | Samsung PS-50C7700 | Microsoft XBOX 360 | Windows 8.1 | Linux Ubuntu 13.04
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Nov 29, 2012 5:26 pm

Re: Thumbnails for WebResources

Yes, currently if container thumbnail is there it overrides the item thumbnail. I think it should be the other way around. Will fix for 1.1.
<<

r-win

User avatar

DLNA master

Posts: 100

Joined: Sun May 22, 2011 6:16 am

Location: Lelystad, Netherlands

Post Thu Nov 29, 2012 6:23 pm

Re: Thumbnails for WebResources

And if it's not there, it will ignore the item thumbnail, and show the placeholder instead.

Thanx for fixing!
Linksys WRT320N | Samsung PS-50C7700 | Microsoft XBOX 360 | Windows 8.1 | Linux Ubuntu 13.04
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Nov 29, 2012 8:53 pm

Re: Thumbnails for WebResources

actually I was wrong. It separates thumbnail for the container and the items. It should already have the behaviour where container thumbnail is only used if item thumbnail is missing.
<<

r-win

User avatar

DLNA master

Posts: 100

Joined: Sun May 22, 2011 6:16 am

Location: Lelystad, Netherlands

Post Thu Nov 29, 2012 9:19 pm

Re: Thumbnails for WebResources

Well, then I suspect it's not working. It never uses the icon from the item itself, only from the container.

Weird fact is that it works with the Feeds, just not with WebResources.
Linksys WRT320N | Samsung PS-50C7700 | Microsoft XBOX 360 | Windows 8.1 | Linux Ubuntu 13.04
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Nov 29, 2012 9:26 pm

Re: Thumbnails for WebResources

I tried Genre Comedy with your plugin and an getting no thumbnails at all:

  Code:
Uitzending Gemist: Finished extraction of url: ContentURLContainer [fileType=VIDEO, contentUrl=http://odi.omroep.nl/video/embedplayer/h264_bb/49f80d131eed1f790955b2bcdcc01de8/50b7d24f/POW_00494667/?type=http&, thumbnailUrl=, expiresImmediately=true, cacheKey=MEDIUM_14692056, live=false, ]


Or do I have to try another feed?
<<

r-win

User avatar

DLNA master

Posts: 100

Joined: Sun May 22, 2011 6:16 am

Location: Lelystad, Netherlands

Post Thu Nov 29, 2012 9:53 pm

Re: Thumbnails for WebResources

Weird, try the last one (Het Zandkasteel). I'll try the genre feed tomorrow: already in bed here :-)

Thanks again for looking into this.
Linksys WRT320N | Samsung PS-50C7700 | Microsoft XBOX 360 | Windows 8.1 | Linux Ubuntu 13.04
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Nov 29, 2012 10:08 pm

Re: Thumbnails for WebResources

The same.

  Code:
22:06:37,960 DEBUG [FeedItemUrlExtractor] Uitzending Gemist: Starting extraction of url for item: Het Zandkasteel - La, la, la liedjes  (ma 26 nov 2012, 09:40)
22:06:38,059 DEBUG [FeedItemUrlExtractor] Uitzending Gemist: Finished extraction of url: ContentURLContainer [fileType=VIDEO, contentUrl=http://odi.omroep.nl/video/embedplayer/h264_bb/df53b614942e46e3c462eedc2f12ed12/50b7dc6d/NPS_1209735/?type=http&, thumbnailUrl=, expiresImmediately=true, cacheKey=MEDIUM_15011870, live=false, ]
22:06:38,059 DEBUG [ContentURLContainer] Cannot parse thumbnail URL: no protocol:
<<

r-win

User avatar

DLNA master

Posts: 100

Joined: Sun May 22, 2011 6:16 am

Location: Lelystad, Netherlands

Post Fri Nov 30, 2012 7:14 am

Re: Thumbnails for WebResources

Alright zip, that pointed me in the right direction. You're right, I forgot a @ somewhere in the Groovy syntax with XmlSlurper. So no problem in Serviio, but one in my plugin.

Thanks again!
Linksys WRT320N | Samsung PS-50C7700 | Microsoft XBOX 360 | Windows 8.1 | Linux Ubuntu 13.04
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Nov 30, 2012 9:43 am

Re: Thumbnails for WebResources

Cool.

Return to Plugin development

Who is online

Users browsing this forum: No registered users and 13 guests

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