mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 04:27:12 +03:00
Improve firmware download proxy
* initialize firmware pre-fetching when a player connects * get firmware based on the player's version string as returned by `status.json` * keep firmware file per platform/branch/resolution combination to support different squeezelite-ESP32 players in an installation * remove handler to get firmware by numeric ID rather than filename
This commit is contained in:
committed by
Michael Herger
parent
b075bbaea3
commit
36571d3dad
@@ -9,6 +9,8 @@ use List::Util qw(min);
|
||||
use Slim::Utils::Log;
|
||||
use Slim::Utils::Prefs;
|
||||
|
||||
use Plugins::SqueezeESP32::FirmwareHelper;
|
||||
|
||||
my $sprefs = preferences('server');
|
||||
my $prefs = preferences('plugin.squeezeesp32');
|
||||
my $log = logger('plugin.squeezeesp32');
|
||||
@@ -95,6 +97,8 @@ sub init {
|
||||
}
|
||||
|
||||
$client->SUPER::init(@_);
|
||||
Plugins::SqueezeESP32::FirmwareHelper::init($client);
|
||||
|
||||
main::INFOLOG && $log->is_info && $log->info("SqueezeESP player connected: " . $client->id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user