Sign up here and you can log into the forum!

Shoutcast, specific Genre or StationID - Custom UMSP Channel

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

Shoutcast, specific Genre or StationID - Custom UMSP Channel   

Postby _xaikar » Sun Apr 25, 2010 1:22 pm

I couldn't find the Genre that my wife wanted to listen to (Disney) through the Genres listed by default in the Shoutcast plugin, so after monkeying around I realized you can very easily pass a genre to the existing plugin through a custom UMSP channel. You can alternatively pass a specific station_id as well.

/conf/umsp.php (note the changes to id and dc:title from the code found in /etc/umsp/media-items.php )
Code: Select all
<?php

global $myMediaItems;

$myMediaItems[] = array(   
   'id'         => 'umsp://plugins/shoutcast?genre=Disney',   #Attribute of item
   'parentID'      => '0',                     #Attribute of item
   'restricted'   => '1',                     #Attribute of item
   'dc:creator'   => 'myCreator',
   'dc:title'      => 'Disney',
   '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'=> '',
   'res'         => '',
   'duration'      => 'myDur3',            #Attribute of res
   'size'         => 'mySize3',            #Attribute of res in bytes
   'bitrate'      => 'myBitr',            #Attribute of res
   'protocolInfo'   => '*:*:*:*',      #Attribute of res
   'resolution'   => 'myReso',            #Attribute of res
   'colorDepth'   => 'myColor',            #Attribute of res
);
?>
_xaikar
WDTVer
 
Posts: 21
Joined: Tue Apr 20, 2010 10:11 pm

Re: Shoutcast, specific Genre or StationID - Custom UMSP Cha   

Postby _xaikar » Sun Apr 25, 2010 1:39 pm

you can filter a little further by using encoded URLs

ie: this will filter by Genre-Disney and Bitrate-128
Code: Select all
'id'                    => 'umsp://plugins/shoutcast?genre=Disney%26br%3D128',
_xaikar
WDTVer
 
Posts: 21
Joined: Tue Apr 20, 2010 10:11 pm


Return to UMSP Media Server

Who is online

Users browsing this forum: No registered users and 2 guests