From f77e12de0bac4295866679e73bf356e7f51fb28e Mon Sep 17 00:00:00 2001 From: Stuart McLaren <8805659+stuart-mclaren@users.noreply.github.com> Date: Wed, 28 Aug 2024 20:20:33 +0100 Subject: [PATCH] Print device icon sizes after config load This means that if device icon sizes are specified in a json config file the correct sizes will be printed. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 8b05b89..8dd8641 100644 --- a/main.go +++ b/main.go @@ -161,7 +161,6 @@ func mainErr() error { config.FriendlyName = *friendlyName config.DeviceIcon = *deviceIcon config.DeviceIconSizes = strings.Split(*deviceIconSizes, ",") - logger.Printf("device icon sizes are %q", config.DeviceIconSizes) config.LogHeaders = *logHeaders config.FFprobeCachePath = *fFprobeCachePath @@ -182,6 +181,7 @@ func mainErr() error { config.load(*configFilePath) } + logger.Printf("device icon sizes are %q", config.DeviceIconSizes) logger.Printf("allowed ip nets are %q", config.AllowedIpNets) logger.Printf("serving folder %q", config.Path) if config.AllowDynamicStreams {