ditheo wrote:
> It seems that only manual tuning is broken... if you add a station on
> the menu it is ok. But that is from the html code I think, because from
> my squeezer app on phone working good.
>
> Also I have test both of the executables but it does not has a
> diffrerence. Althought i change the plugin to recall shark executable
> and test both models it works great. So Basically you can have either
> Shark or Shark2 working with the plugin.
>
> I try to find a solution about the manual tuning .
>
>
The problem came from a 7.8 LMS change so below is a fix (add lines in
red) so that plugin changes space to a decimal point.
In InstalledPlugins/Plugins/Sharkplay/Plugin.pm
Code:
--------------------
sub webManualTune
{
my ($client, $params) = @_;
my $tunerfreq = $params->{tunerfreq};
my $stationtext;
$log->debug("webManualTune");
$tunerfreq =~ s/^\s+|\s+$//g; # trim away leading and trailing
whitespace
$tunerfreq =~ m/^(\d+) ?(\d*)$/; # match first and optional second
group of digits
$tunerfreq = ($2 != 0) ? "$1.$2" : "$1.0"; # Make up a decimal number
from matched digits.
my $content = "shark://$tunerfreq" ;
if ($tunerfreq >= 87.9 && $tunerfreq <= 108.0) {
$tunerfreq = sprintf("%2.1f",$tunerfreq);
$stationtext = "FM $tunerfreq MHz";
}
--------------------
------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=54926
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins