We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 376163e commit 8de2d26Copy full SHA for 8de2d26
1 file changed
Settings.pm
@@ -77,7 +77,8 @@ sub handler2 {
77
$params->{'binaries'} = [ Plugins::LocalPlayer::Squeezelite->binaries('update') ];
78
$params->{'running'} = Plugins::LocalPlayer::Squeezelite->alive;
79
80
- if (my $path = Slim::Utils::Misc::findbin($bin)) {
+ my $path = Slim::Utils::Misc::findbin($bin);
81
+ if ($path) {
82
if (my $options = `$path -?`) {
83
# extract descriptions for server address, name, and MAC address
84
while ($options =~ /(^\s+-[smn]\s+.+\n)/mg) {
@@ -86,8 +87,7 @@ sub handler2 {
86
87
}
88
89
- my $devices = Plugins::LocalPlayer::Squeezelite->devices;
90
-
+ my $devices = Plugins::LocalPlayer::Squeezelite->devices($path);
91
unshift @$devices, { name => '', desc => "Default" };
92
93
$params->{'devices'} = $devices;
0 commit comments