mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 20:47:08 +03:00
28 lines
677 B
Perl
28 lines
677 B
Perl
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, 'squeezeesp32', { client => 'Plugins::SqueezeESP32::Player', display => 'Plugins::SqueezeESP32::Graphics' });
|
|
$log->info("Added class 100 for SqueezeESP32");
|
|
}
|
|
|
|
1;
|