Files
ersatztv/ErsatzTV.Core/Api/Troubleshooting/TroubleshootingSubtitleResponseModel.cs
T
timothyandClaude Fable 5 5815e4b437 feat(api): add troubleshooting stream-selectors, subtitles, and status endpoints
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>
2026-07-08 23:46:35 +02:00

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