Add three GET endpoints to TroubleshootController for the SPA port of the
playback troubleshooting page:
- /api/troubleshoot/playback/stream-selectors (List<string>)
- /api/troubleshoot/playback/subtitles/{mediaItemId} (404 pre-check via
GetMediaItemInfo; maps SubtitleViewModel -> TroubleshootingSubtitleResponseModel)
- /api/troubleshoot/playback/status (TroubleshootingPlaybackStatusResponseModel:
idle/running/completed/failed + exitCode/speed + logs.txt tail)
Regenerate v1.json, endpoint-index.md, and the web API types.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
12 lines
478 B
C#
12 lines
478 B
C#
#nullable enable
|
|
namespace ErsatzTV.Core.Api.Troubleshooting;
|
|
|
|
// Mirrors ErsatzTV.Application.Troubleshooting.SubtitleViewModel. Id is the value the SPA passes
|
|
// back as the m3u8 endpoint's subtitleId query parameter; the remaining fields are display-only.
|
|
// Language/Title/Codec are nullable because embedded/sidecar subtitles frequently lack them.
|
|
public record TroubleshootingSubtitleResponseModel(
|
|
int Id,
|
|
string? Language,
|
|
string? Title,
|
|
string? Codec);
|