mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-07 20:17:04 +03:00
plugin
This commit is contained in:
27
plugin/Plugin.pm
Normal file
27
plugin/Plugin.pm
Normal file
@@ -0,0 +1,27 @@
|
||||
package Plugins::SqueezeESP32::Plugin;
|
||||
|
||||
use strict;
|
||||
|
||||
use base qw(Slim::Plugin::Base);
|
||||
use Slim::Utils::Prefs;
|
||||
use Slim::Utils::Log;
|
||||
|
||||
my $prefs = preferences('plugin.squeezeesp32');
|
||||
|
||||
$prefs->init();
|
||||
|
||||
my $log = Slim::Utils::Log->addLogCategory({
|
||||
'category' => 'plugin.squeezeesp32',
|
||||
'defaultLevel' => 'INFO',
|
||||
'description' => Slim::Utils::Strings::string('SqueezeESP32'),
|
||||
});
|
||||
|
||||
sub initPlugin {
|
||||
my $class = shift;
|
||||
|
||||
$class->SUPER::initPlugin(@_);
|
||||
Slim::Networking::Slimproto::addPlayerClass($class, 100, 'squeeze2esp32', { client => 'Slim::Player::SqueezePlay', display => 'Slim::Display::Text' });
|
||||
LOG_INFO("Added class 100 for SqueezeESP32");
|
||||
}
|
||||
|
||||
1;
|
||||
BIN
plugin/SqueezeESP32.zip
Normal file
BIN
plugin/SqueezeESP32.zip
Normal file
Binary file not shown.
13
plugin/install.xml
Normal file
13
plugin/install.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version='1.0' standalone='yes'?>
|
||||
<extensions>
|
||||
<defaultState>enabled</defaultState>
|
||||
<email>philippe_44@outlook.com</email>
|
||||
<targetApplication>
|
||||
<minVersion>7.9</minVersion>
|
||||
<maxVersion>*.*</maxVersion>
|
||||
<id>SlimServer</id>
|
||||
</targetApplication>
|
||||
<module>Plugins::SqueezeESP32::Plugin</module>
|
||||
<version>0.1</version>
|
||||
<creator>Philippe</creator>
|
||||
</extensions>
|
||||
Reference in New Issue
Block a user