Just for my own documentation. Added the bold marked line to the execute
plugin. If a player is powerded of, the playlist of the corresponding
player is cleared. The NAS goes consequently into standby afterwards,
which is not the case, when the playlist is not cleared.
Code:
--------------------
sub commandCallbackPower {
my $request = shift;
my $client = $request->client();
return unless $client;
my $code = $request->getParam('_buttoncode');
if ($client->power) {
$log->info("Execute: Power On");
doThisScript($client,"power_on");
} else {
$log->info("Execute: Power Off");
*Slim::Control::Request::executeRequest($client, ['playlist', 'clear']);*
doThisScript($client,"power_off");
}
};
--------------------
--
mr_hyde
2 x Squeezebox 3 - SSOTS 3.15 (QPKG) - Squeezecenter 7.3.3 - QNAP TS439
Pro (2.1.6_0424T) - 3 x 500 GB Hitachi (RAID5)
------------------------------------------------------------------------
mr_hyde's Profile: http://forums.slimdevices.com/member.php?userid=6032
View this thread: http://forums.slimdevices.com/showthread.php?t=62537
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins