fix saving watermarks and graphics on playout items (#2313)

This commit is contained in:
Jason Dove
2025-08-13 19:37:46 +00:00
committed by GitHub
parent 8cc0d30c0e
commit 0841bc400b
6 changed files with 43 additions and 32 deletions
@@ -29,4 +29,17 @@ public class ChannelController(ChannelWriter<IBackgroundServiceRequest> workerCh
return new NotFoundResult();
}
[HttpPost("/api/channels/{channelNumber}/playout/continue")]
public async Task<IActionResult> ContinuePlayout(string channelNumber)
{
Option<int> maybePlayoutId = await mediator.Send(new GetPlayoutIdByChannelNumber(channelNumber));
foreach (int playoutId in maybePlayoutId)
{
await workerChannel.WriteAsync(new BuildPlayout(playoutId, PlayoutBuildMode.Continue));
return new OkResult();
}
return new NotFoundResult();
}
}
@@ -121,6 +121,10 @@ public class InternalController : ControllerBase
string path,
CancellationToken cancellationToken)
{
#if DEBUG_NO_SYNC
await Task.Delay(100, cancellationToken);
return NotFound();
#else
Either<BaseError, PlexConnectionParametersViewModel> connectionParameters =
await _mediator.Send(new GetPlexConnectionParameters(plexMediaSourceId), cancellationToken);
@@ -131,6 +135,7 @@ public class InternalController : ControllerBase
Url fullPath = new Uri(r.Uri, path).SetQueryParam("X-Plex-Token", r.AuthToken);
return new RedirectResult(fullPath.ToString());
});
#endif
}
[HttpGet("/media/jellyfin/{*path}")]