mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-09 21:17:18 +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>
|
||||||
11
repo.xml
Normal file
11
repo.xml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?xml version='1.0' standalone='yes'?>
|
||||||
|
<extensions>
|
||||||
|
<plugins>
|
||||||
|
<plugin version="0.1" name="SqueezeESP32" minTarget="7.9" maxTarget="7.*">
|
||||||
|
<sha>8f04d2d7bd3028e499af09184f51ee20254c550c</sha>
|
||||||
|
<desc lang="EN">SqueezESP32 display extension</desc>
|
||||||
|
<url>http://downloads.sourceforge.net/project/lms-youtube/dev/YouTube-0.91.1.zip</url>
|
||||||
|
<title lang="EN">SqueezeESP32</title>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</extensions>
|
||||||
Reference in New Issue
Block a user