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:
Michael Herger
2021-04-14 23:51:18 +02:00
committed by Michael Herger
parent b075bbaea3
commit 36571d3dad
3 changed files with 56 additions and 74 deletions

View File

@@ -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);
}