PDA

View Full Version : Boxee feed caching problems (thumbnails)



Mononofu
August 14th, 2009, 08:01 AM
So I'm trying to control my Dreambox (a DM-600C) right from Boxee. I've already written a Python app to switch channels and return the URL for HTTP-Streaming, as well print a channel feed via Django.

However, I can't get Boxee to display correct thumbnails for my items. Each and every has just the Tedtalk-logo - probably because I initally used the Tedtalks feed as example, but still strange since I removed and readded the feed multiple times in between, as well changed the URL and its title.

My feed:

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:boxee="as http://boxee.tv/spec/rss/">
<channel>
<lastBuildDate>Fri, 14 Aug 2009 07:58:25 CDT</lastBuildDate>
<title>Dreambox@Boxee</title>
<boxee:expiry>0</boxee:expiry>
<link>http://localhost/django/dream/</link>
<generator>Python</generator>
<description>blablabla</description>
<language>en</language>
<copyright>Creative Commons: http://creativecommons.org/licenses/by-nc-nd/3.0/ </copyright>

<image>
<url>http://localhost/media/thumbs/DM600PVR.jpg</url>
<title>Dreambox</title>
<link>http://localhost/django/dream/</link>
<width>144</width>
<height>144</height>
</image>
<category>Entertainment</category>
<media:rating scheme="urn:simple">nonadult</media:rating>
<media:copyright>Creative Commons: http://creativecommons.org/licenses/by-nc-nd/3.0/</media:copyright>
<media:thumbnail url="http://localhost/media/thumbs/DM600PVR.jpg" />
<media:keywords>Dreambox</media:keywords>
<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://localhost/django/dream/" type="application/rss+xml" />


<item>
<title>3sat</title>
<description>some desc</description>
<media:thumbnail url="http://localhost/media/thumbs/3sat.jpg" />
<enclosure type="video/mp4" url="http://localhost/django/dream/1:0:1:6d67:437:1:0:0:0:0:" length="273610696" />
<link>http://localhost/django/dream/1:0:1:6d67:437:1:0:0:0:0:</link>
<guid isPermaLink="false">http://localhost/django/dream/1:0:1:6d67:437:1:0:0:0:0:</guid>
<pubDate>Fri, 14 Aug 2009 07:58:25 -0500</pubDate>
<category>Entertainment</category>
<media:content url="http://localhost/django/dream/1:0:1:6d67:437:1:0:0:0:0:"/>
</item>

<item>
<title>ORF2</title>
<description>some desc</description>
<media:thumbnail url="http://localhost/media/thumbs/ORF2.jpg" />
<enclosure type="video/mp4" url="http://localhost/django/dream/1:0:1:32ca:45d:1:0:0:0:0:" length="273610696" />
<link>http://localhost/django/dream/1:0:1:32ca:45d:1:0:0:0:0:</link>
<guid isPermaLink="false">http://localhost/django/dream/1:0:1:32ca:45d:1:0:0:0:0:</guid>
<pubDate>Fri, 14 Aug 2009 07:58:25 -0500</pubDate>
<category>Entertainment</category>
<media:content url="http://localhost/django/dream/1:0:1:32ca:45d:1:0:0:0:0:"/>
</item>

<item>
<title>ProSieben Austria</title>
<description>some desc</description>
<media:thumbnail url="http://localhost/media/thumbs/ProSiebenAustria.jpg" />
<enclosure type="video/mp4" url="http://localhost/django/dream/1:0:1:4e22:43a:1:0:0:0:0:" length="273610696" />
<link>http://localhost/django/dream/1:0:1:4e22:43a:1:0:0:0:0:</link>
<guid isPermaLink="false">http://localhost/django/dream/1:0:1:4e22:43a:1:0:0:0:0:</guid>
<pubDate>Fri, 14 Aug 2009 07:58:25 -0500</pubDate>
<category>Entertainment</category>
<media:content url="http://localhost/django/dream/1:0:1:4e22:43a:1:0:0:0:0:"/>
</item>

<item>
<title>RTL Austria</title>
<description>some desc</description>
<media:thumbnail url="http://localhost/media/thumbs/RTLAustria.jpg" />
<enclosure type="video/mp4" url="http://localhost/django/dream/1:0:1:7080:443:1:0:0:0:0:" length="273610696" />
<link>http://localhost/django/dream/1:0:1:7080:443:1:0:0:0:0:</link>
<guid isPermaLink="false">http://localhost/django/dream/1:0:1:7080:443:1:0:0:0:0:</guid>
<pubDate>Fri, 14 Aug 2009 07:58:25 -0500</pubDate>
<category>Entertainment</category>
<media:content url="http://localhost/django/dream/1:0:1:7080:443:1:0:0:0:0:"/>
</item>

<item>
<title>RTL2 Austria</title>
<description>some desc</description>
<media:thumbnail url="http://localhost/media/thumbs/RTL2Austria.jpg" />
<enclosure type="video/mp4" url="http://localhost/django/dream/1:0:1:708a:443:1:0:0:0:0:" length="273610696" />
<link>http://localhost/django/dream/1:0:1:708a:443:1:0:0:0:0:</link>
<guid isPermaLink="false">http://localhost/django/dream/1:0:1:708a:443:1:0:0:0:0:</guid>
<pubDate>Fri, 14 Aug 2009 07:58:25 -0500</pubDate>
<category>Entertainment</category>
<media:content url="http://localhost/django/dream/1:0:1:708a:443:1:0:0:0:0:"/>
</item>

<item>
<title>SAT.1 A</title>
<description>some desc</description>
<media:thumbnail url="http://localhost/media/thumbs/SAT.1A.jpg" />
<enclosure type="video/mp4" url="http://localhost/django/dream/1:0:1:4e25:43a:1:0:0:0:0:" length="273610696" />
<link>http://localhost/django/dream/1:0:1:4e25:43a:1:0:0:0:0:</link>
<guid isPermaLink="false">http://localhost/django/dream/1:0:1:4e25:43a:1:0:0:0:0:</guid>
<pubDate>Fri, 14 Aug 2009 07:58:25 -0500</pubDate>
<category>Entertainment</category>
<media:content url="http://localhost/django/dream/1:0:1:4e25:43a:1:0:0:0:0:"/>
</item>

<item>
<title>ZDF</title>
<description>some desc</description>
<media:thumbnail url="http://localhost/media/thumbs/ZDF.jpg" />
<enclosure type="video/mp4" url="http://localhost/django/dream/1:0:1:6d66:437:1:0:0:0:0:" length="273610696" />
<link>http://localhost/django/dream/1:0:1:6d66:437:1:0:0:0:0:</link>
<guid isPermaLink="false">http://localhost/django/dream/1:0:1:6d66:437:1:0:0:0:0:</guid>
<pubDate>Fri, 14 Aug 2009 07:58:25 -0500</pubDate>
<category>Entertainment</category>
<media:content url="http://localhost/django/dream/1:0:1:6d66:437:1:0:0:0:0:"/>
</item>

<item>
<title>ZDFdokukanal</title>
<description>some desc</description>
<media:thumbnail url="http://localhost/media/thumbs/ZDFdokukanal.jpg" />
<enclosure type="video/mp4" url="http://localhost/django/dream/1:0:1:6d6e:437:1:0:0:0:0:" length="273610696" />
<link>http://localhost/django/dream/1:0:1:6d6e:437:1:0:0:0:0:</link>
<guid isPermaLink="false">http://localhost/django/dream/1:0:1:6d6e:437:1:0:0:0:0:</guid>
<pubDate>Fri, 14 Aug 2009 07:58:25 -0500</pubDate>
<category>Entertainment</category>
<media:content url="http://localhost/django/dream/1:0:1:6d6e:437:1:0:0:0:0:"/>
</item>


<media:credit role="author">Dreambox</media:credit><media:rating>nonadult</media:rating><media:description type="plain">My personal Dreambox channels</media:description>
</channel>
</rss>

The full feed is available at http://pastebin.com/m6cc8ef14

According to what I've gathered from this forum, "<media:thumbnail url="http://localhost/media/thumbs/ZDF.jpg" />" should be the correct tag for adding a thumbnail. Still, it doesn't work.
The XML file is well-formed, all the images exist, and the URLs should be escaped.

Do you have any idea what the problem could be? As of now, my feed is working as it should, I just don't get the logos of the different channels but the same Tedtalks logo for all of them, which doesn't make it that stylish :o

DPK
August 14th, 2009, 08:15 AM
Try clearing out your cached thumbnails by purging:
~\BOXEE\userdata\profiles\[user]\Thumbnails

Then restart boxee. Boxee tends to retain whatever thumbnail it originally downloads for a feed item once it obtains it. So as you said earlier, it's probably holding onto the TED images and displaying them regardless of what you are saying you want them to be.

Mononofu
August 14th, 2009, 01:22 PM
Hell yeah, it worked ! :eek:

Thanks many times, you saved my day - no more text interface for watching TV for me :D

Still, two items have managed to retain their Tedtalks image :confused:
Well, I guess I have to invest a bit more work.

btw, if you want the sourcecode:
http://github.com/Mononofu/Boxee-Dreambox/tree/master
Main logic is in dreambox/views.py