mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-10 13:37:03 +03:00
set height before building modes
This commit is contained in:
Binary file not shown.
@@ -210,7 +210,7 @@ my @extra = (
|
|||||||
);
|
);
|
||||||
|
|
||||||
@modes = (@modes, @extra) if $cprefs->get('height') > 32;
|
@modes = (@modes, @extra) if $cprefs->get('height') > 32;
|
||||||
|
|
||||||
return \@modes;
|
return \@modes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,13 +32,16 @@ sub playerSettingsFrame {
|
|||||||
$value = (unpack('Cn', $$data_ref))[1];
|
$value = (unpack('Cn', $$data_ref))[1];
|
||||||
if ($value > 100 && $value < 400) {
|
if ($value > 100 && $value < 400) {
|
||||||
$prefs->client($client)->set('width', $value);
|
$prefs->client($client)->set('width', $value);
|
||||||
|
|
||||||
|
my $height = (unpack('Cnn', $$data_ref))[2];
|
||||||
|
$prefs->client($client)->set('height', $height || 0);
|
||||||
|
|
||||||
$client->display->modes($client->display->build_modes);
|
$client->display->modes($client->display->build_modes);
|
||||||
$client->display->widthOverride(1, $value);
|
$client->display->widthOverride(1, $value);
|
||||||
$client->update;
|
$client->update;
|
||||||
|
|
||||||
|
$log->info("Setting player $value" . "x" . "$height for ", $client->name);
|
||||||
}
|
}
|
||||||
my $height = (unpack('Cnn', $$data_ref))[2];
|
|
||||||
$prefs->client($client)->set('height', $height || 0);
|
|
||||||
$log->info("Setting player $value" . "x" . "$height for ", $client->name);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$client->SUPER::playerSettingsFrame($data_ref);
|
$client->SUPER::playerSettingsFrame($data_ref);
|
||||||
|
|||||||
@@ -10,6 +10,6 @@
|
|||||||
<name>PLUGIN_SQUEEZEESP32</name>
|
<name>PLUGIN_SQUEEZEESP32</name>
|
||||||
<description>PLUGIN_SQUEEZEESP32_DESC</description>
|
<description>PLUGIN_SQUEEZEESP32_DESC</description>
|
||||||
<module>Plugins::SqueezeESP32::Plugin</module>
|
<module>Plugins::SqueezeESP32::Plugin</module>
|
||||||
<version>0.60</version>
|
<version>0.61</version>
|
||||||
<creator>Philippe</creator>
|
<creator>Philippe</creator>
|
||||||
</extensions>
|
</extensions>
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<?xml version='1.0' standalone='yes'?>
|
<?xml version='1.0' standalone='yes'?>
|
||||||
<extensions>
|
<extensions>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin version="0.60" name="SqueezeESP32" minTarget="7.5" maxTarget="*">
|
<plugin version="0.61" name="SqueezeESP32" minTarget="7.5" maxTarget="*">
|
||||||
<link>https://github.com/sle118/squeezelite-esp32</link>
|
<link>https://github.com/sle118/squeezelite-esp32</link>
|
||||||
<creator>Philippe</creator>
|
<creator>Philippe</creator>
|
||||||
<sha>fe158890790ead9a5f27a47a7c7a55b5719087fe</sha>
|
<sha>5c45fed832e6f79f709bef5f2da511071d1c776e</sha>
|
||||||
<email>philippe_44@outlook.com</email>
|
<email>philippe_44@outlook.com</email>
|
||||||
<desc lang="EN">SqueezeESP32 additional player id (100)</desc>
|
<desc lang="EN">SqueezeESP32 additional player id (100)</desc>
|
||||||
<url>http://github.com/sle118/squeezelite-esp32/raw/master/plugin/SqueezeESP32.zip</url>
|
<url>http://github.com/sle118/squeezelite-esp32/raw/master/plugin/SqueezeESP32.zip</url>
|
||||||
|
|||||||
Reference in New Issue
Block a user