Sign up here and you can log into the forum!

Thumbs for UMSP channels

Discussion, features, plugins--everything about zoster's UMSP UPnP Media Server software

Re: Thumbs for UMSP channels   

Postby recliq » Wed Jun 09, 2010 4:22 am

Better yet, is there a way to dump the messages between the site and WD TV?

yea, it's called tcpdump and is included in latest wdlxtv release.
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Thumbs for UMSP channels   

Postby PaulF » Fri Jun 11, 2010 8:30 pm

I got the "This American Life" working. The feed had two channel image URLs and I switched URLs and it now works. I was playing with Simple XML objects and picked a different URL by mistake. The image that is displayed by the style sheet when you display the feed in a browser is the image that works. I will post my Simple script in my daily podcast topic.
User avatar
PaulF
Developer
 
Posts: 427
Joined: Sat May 08, 2010 8:34 pm
Location: Oregon

Re: Thumbs for UMSP channels   

Postby PaulF » Mon Jun 14, 2010 12:49 am

I changed the _pluginCreateFeedList function to add thumbs to the BBC plugin in /etc/umsp/plugins/bbc.php. I haven't figured out XMLreader so I used XML Simple.

Code: Select all
function _pluginCreateFeedList($feed){
$channels = array(  "radio1/reviewshow",
                    "radio1/mills",
                    "radio1/radio1doc",
                    "radio1/r1chart",
                    "radio1/r1mix",
                    "radio1/moyles",
                    "radio1/moylesen",
                    "radio1/huwintro",
                    "radio1/zane",
                    "radio2/pauljones",
                    "radio/worldbiz",
                    "radio/newspod",
);

foreach ($channels as $key => $value)
        {
        $baseurl = 'http://downloads.bbc.co.uk/podcasts/';
        $feedrss = '/rss.xml';
        $feedurl = $baseurl . $value . $feedrss;
        $reader = new XMLReader();
        # attempt to read the feed title from the rss xml
        $episodelistXML = file_get_contents($feedurl);
        $simplexml = new SimpleXMLElement($episodelistXML);
        $retMediaItems[] = array (
                            'id'            => 'umsp://plugins/bbc?feed=' . $feedurl,
                            'dc:title'      =>  (string)$simplexml->channel[0]->title,
                            'res'           => 'umsp://plugins/bbc?feed=' . $feedurl,
                            'upnp:class'    => 'object.container',
                            'upnp:album_art' => (string)$simplexml->channel[0]->image->url,
                            ); // end array building
        } // end foreach
return $retMediaItems;
} // end function
User avatar
PaulF
Developer
 
Posts: 427
Joined: Sat May 08, 2010 8:34 pm
Location: Oregon

Re: Thumbs for UMSP channels   

Postby PaulF » Tue Jul 06, 2010 12:52 am

recliq wrote:
Better yet, is there a way to dump the messages between the site and WD TV?

yea, it's called tcpdump and is included in latest wdlxtv release.
That was very very helpful. I also found the text version of windows Wireshark to be very useful.

Do:
tcpdump -w dumpile
tshark -V -r dumpfile

You might want to add this package to the release.
User avatar
PaulF
Developer
 
Posts: 427
Joined: Sat May 08, 2010 8:34 pm
Location: Oregon

Re: Thumbs for UMSP channels   

Postby recliq » Tue Jul 06, 2010 5:17 am

i don't see the need of tshark in the image, you can capture with tcpdump -w to a file and open this file with wireshark if needed...
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Thumbs for UMSP channels   

Postby PaulF » Tue Jul 06, 2010 10:03 am

recliq wrote:i don't see the need of tshark in the image, you can capture with tcpdump -w to a file and open this file with wireshark if needed...
I said "might" because I wasn't sure you would like to include it for image size reasons. I actually do the display and capture with wireshark on my PC and I am fine. It would be nice to be able to tell someone who is having network problems. "post a tshark -V dump". I suppose they could install the tshark Debian package in that case or Wireshark on the PC.
User avatar
PaulF
Developer
 
Posts: 427
Joined: Sat May 08, 2010 8:34 pm
Location: Oregon

Re: Thumbs for UMSP channels   

Postby merv » Mon Aug 30, 2010 10:47 am

Hi all,

just wondering if its possible to have a thumbnail image for all umsp-plugins.

What I know so far is that it's possible to add thumb images through editing the '/tmp/conf/umsp.php' file as shown below.
'upnp:album_art'=> '/tmp/mnt/76489A72489A313B/.images/bliptv.png',

But I would like to do the same with the pre-installed plugins, 'Optical-drive', 'Apple-Trailers', 'Shoutcast', 'Revision3' and 'BBC Podcast'.
I don't know how to edit media-items.php as file isn't writable.

Is it possible to have movie sheets working in umsp-plugins also, but not important.

Thanks in advance.
Merv
merv
WDTVer
 
Posts: 25
Joined: Mon Jun 14, 2010 5:54 am

Re: Thumbs for UMSP channels   

Postby zoster » Mon Aug 30, 2010 12:10 pm

You can modify items from media-items.php by copying all of them to the /conf/umsp.php and applying the changes there.
Then you add
Code: Select all
unset($myMediaItems);
on the first line of umsp.php
zoster
WDLXTV Team
 
Posts: 218
Joined: Wed Apr 14, 2010 10:14 am

Re: Thumbs for UMSP channels   

Postby merv » Mon Aug 30, 2010 11:33 pm

Hi Zoster, thanks for quick reply.

zoster wrote:You can modify items from media-items.php by copying all of them to the /conf/umsp.php and applying the changes there.
Then you add
Code: Select all
unset $myMediaItems;
on the first line of umsp.php


I added line 'unset $myMediaItems;' in my umsp.php file as listed below and if I comment or uncomment 'global $myMediaItems;' it display message "no content in folder".
I obviously done something wrong could you have look at code and let me know if it can be corrected.

Code: Select all
<?php

    unset $myMediaItems;
    #global $myMediaItems;  #no difference if commented or not
   
    $myMediaItems[] = array(   
      'id'         => 'umsp://plugins/optical-drive',
      'parentID'      => '0',
      'dc:title'      => 'Optical Drive Manager',
      'upnp:class'   => 'object.container',
      'upnp:album_art'=> '/tmp/mnt/76489A72489A313B/.images/optical-drive.png',
    );

    $myMediaItems[] = array(   
      'id'         => 'umsp://plugins/shoutcast',
      'parentID'      => '0',
      'dc:title'      => 'Shoutcast',
      'upnp:class'   => 'object.container',
      'upnp:album_art'=> '/tmp/mnt/76489A72489A313B/.images/shoutcast.png',
    );

    $myMediaItems[] = array(   
      'id'         => 'umsp://plugins/apple-trailers',
      'parentID'      => '0',
      'dc:title'      => 'Apple-Trailers',
      'upnp:class'   => 'object.container',
      'upnp:album_art'=> '/tmp/mnt/76489A72489A313B/.images/apple-trailers.png',
    );

    $myMediaItems[] = array(   
      'id'         => 'umsp://plugins/bbc',
      'parentID'      => '0',
      'dc:title'      => 'BBC Audio Podcasts (beta!)',
      'upnp:class'   => 'object.container',
      'upnp:album_art'=> '/tmp/mnt/76489A72489A313B/.images/bbc-cast.png',
    );

    $myMediaItems[] = array(   
      'id'         => 'umsp://plugins/revision3',
      'parentID'      => '0',
      'dc:title'      => 'Revision3 Vodcasts',
      'upnp:class'   => 'object.container',
      'upnp:album_art'=> '/tmp/mnt/76489A72489A313B/.images/revision3.png',
    );

    $myMediaItems[] = array(   
       'id'      => 'umsp://plugins/bliptv',
       'parentID'   => '0',
       'restricted'   => '1',
       'dc:creator'   => 'myCreator',
       'dc:title'   => 'BlipTV',
       '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'=> '/tmp/mnt/76489A72489A313B/.images/bliptv.png',
       'duration'   => 'myDur3',
       'size'      => 'mySize3',
       'bitrate'   => 'myBitr',
       'protocolInfo'   => '*:*:*:*',
       'resolution'   => 'myReso',
       'colorDepth'   => 'myColor',
    );
   
    $myMediaItems[] = array(   
       'id'      => 'umsp://plugins/http-stream',
       'parentID'   => '0',
       'restricted'   => '1',
       'dc:creator'   => 'myCreator',
       'dc:title'   => 'TPG IPTV',
       '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'=> '/tmp/mnt/76489A72489A313B/.images/tpg-iptv.png',
       'duration'   => 'myDur3',
       'size'      => 'mySize3',
       'bitrate'   => 'myBitr',
       'protocolInfo'   => '*:*:*:*',
       'resolution'   => 'myReso',
       'colorDepth'   => 'myColor',
    );

    $myMediaItems[] = array(   
       'id'      => 'umsp://plugins/tube8',  #You need to have access to the restricted-plugins from svn or put umsp-plugins.tgz which contains tube8.php into your /conf folder
       'parentID'   => '0',
       'restricted'   => '1',
       'dc:creator'   => 'myCreator',
       'dc:title'   => 'Tube8',
       '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'=> '/tmp/mnt/76489A72489A313B/.images/tube8.png',
       'duration'   => 'myDur3',
       'size'      => 'mySize3',
       'bitrate'   => 'myBitr',
       'protocolInfo'   => '*:*:*:*',
       'resolution'   => 'myReso',
       'colorDepth'   => 'myColor',
    );

    $myMediaItems[] = array(   
       'id'      => 'umsp://plugins/pornhub', #You need to have access to the restricted-plugins from svn or put umsp-plugins.tgz which contains pornhub.php into your /conf folder
       'parentID'   => '0',
       'restricted'   => '1',
       'dc:creator'   => 'myCreator',
       'dc:title'   => 'Pornhub',
       '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'=> '/tmp/mnt/76489A72489A313B/.images/pornhub.png',
       'duration'   => 'myDur3',
       'size'      => 'mySize3',
       'bitrate'   => 'myBitr',
       'protocolInfo'   => '*:*:*:*',
       'resolution'   => 'myReso',
       'colorDepth'   => 'myColor',
    );

    $myMediaItems[] = array(   
       'id'      => 'umsp://plugins/tech', #You need to have access to the restricted-plugins from svn or put umsp-plugins.tgz which contains pornhub.php into your /conf folder
       'parentID'   => '0',
       'restricted'   => '1',
       'dc:creator'   => 'myCreator',
       'dc:title'   => 'TECH',
       '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'=> '/tmp/mnt/76489A72489A313B/.images/hdnation.png',
       'duration'   => 'myDur3',
       'size'      => 'mySize3',
       'bitrate'   => 'myBitr',
       'protocolInfo'   => '*:*:*:*',
       'resolution'   => 'myReso',
       'colorDepth'   => 'myColor',
    );
?>

Thanks again.
Merv
merv
WDTVer
 
Posts: 25
Joined: Mon Jun 14, 2010 5:54 am

Re: Thumbs for UMSP channels   

Postby zoster » Tue Aug 31, 2010 12:09 am

My mistake. Forgot the parentheses. See above.
It's always a good idea to check the php log for errors (It's located in /tmp/.root/var ...).
zoster
WDLXTV Team
 
Posts: 218
Joined: Wed Apr 14, 2010 10:14 am

PreviousNext

Return to UMSP Media Server

Who is online

Users browsing this forum: No registered users and 2 guests