Skip to content

Commit 0e1fdb4

Browse files
Merge pull request #7 from piCorePlayer/noautorun_for_pCP
If installed on pCP LMS server, do not autorun the local player.
2 parents cc2449a + 01437df commit 0e1fdb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Plugin.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Slim::Utils::Log;
1010
my $prefs = preferences('plugin.localplayer');
1111

1212
$prefs->init({
13-
autorun => 1,
13+
autorun => sub { lc(Slim::Utils::OSDetect::details()->{osName} || '') eq 'picore' ? 0 : 1 },
1414
output => '',
1515
opts => '-s 127.0.0.1',
1616
debugs => '',

0 commit comments

Comments
 (0)