Example of being pro-active might provide better answers.

Normally the getMetedataFor routine has to return a hash with icon,
title etc.
Line in red show that in some circumstance it will return "empty" - this
may explain the "blank" slots in your queue. Adding additional logging
would check if this was the case. 

In RP code - its getMetdataFor handler - fragment below

Code:
--------------------
    
  sub getMetadataFor {
        my ( $class, $client, $url, $forceCurrent ) = @_;
  
        $client = $client->master;
        my $song = $forceCurrent ? $client->streamingSong() : 
$client->playingSong();
        return {} unless $song;
  
        main::DEBUGLOG && $log->is_debug && $log->debug("Refreshing metadata");
  
        my $icon = $class->getIcon();
        my $cached = $class->getBlockData($song);
  
        # want the streaming song and url specific, means we want the whole 
block
        if ($cached && $forceCurrent eq 'repeating') {
                main::INFOLOG && $log->is_info && $log->info("returning 1st 
song of new block");
  
                return {
                        icon    => $icon,
                        cover   => $icon,
                        bitrate => '',
                        title   => 'Radio Paradise',
                        duration => $cached->{length},
                        secs   => $cached->{length},
                        song_id => 0,
                        slideshow => [],
                        buttons   => {
                                rew => 0,
                        },
                };
        }
  .
  .
  .
  
--------------------


------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=116205

_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to