Für die Nachbauer (funktioniert, für Jivelite, Squeezer und WebIF):


                # customize TuneIn's main opml stream to get artwork etc.
                for my $item ( @{ $opml->{items} } ) {
                
                        $item->{key} = 'search' if !$item->{key} && 
$item->{type} eq
'search';
                        
                        # remap 'location' to 'world' so it gets merged with 
mysb's menu if
needed
                        my $key = delete $item->{key};
                        my $class = $key eq 'location' ? 'world' : $key;
                        
                        ############################################### Hier 
filtern
                        if ($key eq 'music' || $key eq 'search' ) {  
                        ############################################### 
                                        
                                $item->{class} = ucfirst($class);
                                
                                $weight = MENUS->{$class}->{weight} || 
++$weight;
                                
                                $item->{URL}   = delete $item->{url};
                                $item->{icon}  = MENUS->{$class}->{icon} ||
MENUS->{'default'}->{icon};
                                $item->{iconre} = 'radiotime';
                                $item->{weight} = $weight;
                                push @$menu, $item;
                                
                                # TTP 864, Use the string token for name 
instead of whatever
translated name we get
                                $item->{name} = 'RADIOTIME_' . uc($class);
                        }
                }


Mögliche Keys sind:

[16-12-12 09:02:43.8215] Slim::Plugin::InternetRadio::TuneIn::parseMenu
(135) Key: local
[16-12-12 09:02:43.8217] Slim::Plugin::InternetRadio::TuneIn::parseMenu
(135) Key: music
[16-12-12 09:02:43.8227] Slim::Plugin::InternetRadio::TuneIn::parseMenu
(135) Key: news
[16-12-12 09:02:43.8229] Slim::Plugin::InternetRadio::TuneIn::parseMenu
(135) Key: sports
[16-12-12 09:02:43.8240] Slim::Plugin::InternetRadio::TuneIn::parseMenu
(135) Key: talk
[16-12-12 09:02:43.8245] Slim::Plugin::InternetRadio::TuneIn::parseMenu
(135) Key: location
[16-12-12 09:02:43.8247] Slim::Plugin::InternetRadio::TuneIn::parseMenu
(135) Key: language
[16-12-12 09:02:43.8248] Slim::Plugin::InternetRadio::TuneIn::parseMenu
(135) Key: search
[16-12-12 09:02:43.8250] Slim::Plugin::InternetRadio::TuneIn::parseMenu
(135) Key: podcast


------------------------------------------------------------------------
Squeezy's Profile: http://forums.slimdevices.com/member.php?userid=4276
View this thread: http://forums.slimdevices.com/showthread.php?t=106598

_______________________________________________
slimserver-de mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/slimserver-de

Antwort per Email an