diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f1170dd0..839e34343 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +### Added +- Show Legacy, Next and FFmpeg versions in **Troubleshooting** > **General** + ### Changed - Upgrade all bundled versions of ffmpeg from 7.1 to 8.1.2 - Other versions (`linux64` and `linuxarm64`) are available at https://github.com/ErsatzTV/ErsatzTV-ffmpeg/releases/tag/8.1.2 diff --git a/ErsatzTV.Application/Troubleshooting/Queries/GetTroubleshootingInfo.cs b/ErsatzTV.Application/Troubleshooting/Queries/GetTroubleshootingInfo.cs index 4f1200d7c..82b50592c 100644 --- a/ErsatzTV.Application/Troubleshooting/Queries/GetTroubleshootingInfo.cs +++ b/ErsatzTV.Application/Troubleshooting/Queries/GetTroubleshootingInfo.cs @@ -1,3 +1,3 @@ namespace ErsatzTV.Application.Troubleshooting.Queries; -public record GetTroubleshootingInfo : IRequest; +public record GetTroubleshootingInfo(string NextVersion) : IRequest; diff --git a/ErsatzTV.Application/Troubleshooting/Queries/GetTroubleshootingInfoHandler.cs b/ErsatzTV.Application/Troubleshooting/Queries/GetTroubleshootingInfoHandler.cs index 6d10ca596..c7f956cb3 100644 --- a/ErsatzTV.Application/Troubleshooting/Queries/GetTroubleshootingInfoHandler.cs +++ b/ErsatzTV.Application/Troubleshooting/Queries/GetTroubleshootingInfoHandler.cs @@ -51,6 +51,8 @@ public class GetTroubleshootingInfoHandler : IRequestHandler()? .InformationalVersion ?? "unknown"; + string ffmpegVersion = "unknown"; + var healthCheckSummaries = healthCheckResults .Filter(r => r.Status is HealthCheckStatus.Warning or HealthCheckStatus.Fail) .Map(r => new HealthCheckResultSummary(r.Title, r.Message)) @@ -90,6 +92,9 @@ public class GetTroubleshootingInfoHandler : IRequestHandler vaapiDevices)) @@ -189,6 +194,8 @@ public class GetTroubleshootingInfoHandler : IRequestHandler Environment, List Cpus, List VideoControllers, diff --git a/ErsatzTV/Controllers/Api/TroubleshootController.cs b/ErsatzTV/Controllers/Api/TroubleshootController.cs index 8eabe6a0b..47c5af405 100644 --- a/ErsatzTV/Controllers/Api/TroubleshootController.cs +++ b/ErsatzTV/Controllers/Api/TroubleshootController.cs @@ -85,7 +85,7 @@ public class TroubleshootController( try { TroubleshootingInfo troubleshootingInfo = await mediator.Send( - new GetTroubleshootingInfo(), + new GetTroubleshootingInfo(NextVersion.Version), cancellationToken); // filter ffmpeg profiles diff --git a/ErsatzTV/Pages/Troubleshooting/Troubleshooting.razor b/ErsatzTV/Pages/Troubleshooting/Troubleshooting.razor index b73924336..27133071e 100644 --- a/ErsatzTV/Pages/Troubleshooting/Troubleshooting.razor +++ b/ErsatzTV/Pages/Troubleshooting/Troubleshooting.razor @@ -149,12 +149,14 @@ try { - TroubleshootingInfo info = await Mediator.Send(new GetTroubleshootingInfo(), token); + TroubleshootingInfo info = await Mediator.Send(new GetTroubleshootingInfo(NextVersion.Version), token); _troubleshootingInfo = JsonSerializer.Serialize( new { - info.Version, + LegacyVersion = info.Version, + info.NextVersion, + info.FFmpegVersion, Environment = info.Environment.OrderBy(x => x.Key).ToDictionary(x => x.Key, x => x.Value), info.Cpus, info.VideoControllers,