bonze wrote:
> Odd, the original servers seemed to stop about a week ago for me and it
> reverted to the default logo for each station.
>
> I thought it was something to do with the changeover to the new servers,
> but there must be something else.
Here is another bit of patching to make the song info and icon from
RadioVis actually update in the web interface with the
BBCiPlayer-v1.3.1alpha2 plugin.
At about line 208 in RadioVis.pm, add the lines in red:
Code:
--------------------
my $notify = Slim::Utils::Versions->compareVersions($::VERSION, "7.5")
>= 0 ? [ 'newmetadata' ] : [ 'playlist', 'newsong' ];
# Update the playlist time so the web will refresh, etc
$song->owner->master->currentPlaylistUpdateTime( Time::HiRes::time() );
Slim::Control::Request::notifyFromArray($song->owner->master, $notify);
--------------------
Also a similar line (around line 125) in HLS.pm will make the kbps
display appear in the web interface soon after the stream starts
(without requiring RadioVis enabling):
Code:
--------------------
my $redurl = shift @lines;
$log->debug("redirect: $redurl");
# Update the playlist time so the web will refresh, etc
${*$self}{'song'}->owner->master->currentPlaylistUpdateTime(
Time::HiRes::time() );
$self->_fetchPL($redurl, $start);
return;
--------------------
Don't ask me why that is required - I just noticed this in other plugins
and gave it a try...
Finally, there is an oddity with the live World Service, in that it has
a 'rolling' 30-second duration, which means the above fixes messes up,
causing stream restarts. That is all fixed by the following, around line
170 in HLS.pm:
Code:
--------------------
}
${*$self}{'song'}->duration($duration) if ${*$self}{'_pl_noupdate'} &&
defined $duration;
$log->info(sub { "existing chunks: [" . join(",", map {
$_->{'chunknum'} } @{${*$self}{'_chunks'}}) . "]" });
--------------------
------------------------------------------------------------------------
utgg's Profile: http://forums.slimdevices.com/member.php?userid=40900
View this thread: http://forums.slimdevices.com/showthread.php?t=53229
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins