i'm just playin' around with umsp-plugins and stuck with an rss-feed. I add many podcast-feeds and there all working great (for example http://www.tagesschau.de/export/video-podcast/webl/tagesschau/). But one rss-feed http://www.zdf.de/ZDFmediathek/rss/857424 will not work, i always get no content-message. Here are my plugin.php's
umsp.php:
- Code: Select all
$myMediaItems[] = array(
'id' => 'umsp://plugins/mediathek',
'parentID' => '0',
'restricted' => '1',
'dc:creator' => 'myCreator',
'dc:title' => 'ZDF Mediathek TEST',
'dc:date' => '2009-12-30',
'upnp:author' => 'myAuthor',
'upnp:artist' => 'myArtist',
'upnp:album' => 'myAlbum',
'upnp:genre' => 'myGenre',
'upnp:length' => '2:10:20',
'desc' => 'myDesc',
'upnp:class' => 'object.container',
'upnp:album_art'=> 'http://www.zdf.de/ZDFmediathek/img/logo-zdf.gif',
'duration' => 'myDur3',
'size' => 'mySize3',
'bitrate' => 'myBitr',
'protocolInfo' => '*:*:*:*',
'resolution' => 'myReso',
'colorDepth' => 'myColor',
);
#------------------------------
mediathek.php
- Code: Select all
<?php
function _pluginMain($prmQuery) {
$reader = new XMLReader();
$episodelistXML = file_get_contents('http://www.zdf.de/ZDFmediathek/rss/857424');
$reader->XML($episodelistXML);
while ($reader->read()) {
if ($reader->nodeType == XMLReader::ELEMENT) {
if ($reader->localName == 'title') {
$title = $reader->readString ('title');
} # end if
if ($reader->localName == 'enclosure') {
$location = $reader->getAttribute('url');
$data = array(
'url' => $location,
);
$dataString = http_build_query($data, 'pluginvar_');
$retMediaItems[] = array (
'id' => 'umsp://plugins/mediathek?' . $dataString,
'dc:title' => $title,
'res' => $location,
'upnp:class' => 'object.item.videoitem',
'protocolInfo' => 'http-get:*:video/mov:*',
);
} # end if
} # end if
} #end while
return $retMediaItems;
} # end function
?>
umsp-test
- Code: Select all
Notice: Undefined variable: retMediaItems in /tmp/umsp-plugins/mediathek.php on line 27
No results.
I didn't get the problem cause the destination of all links are xml-rss-feeds. Does anyone have an idea?
Thank you in advance!


