fix saving watermarks and graphics on playout items (#2313)
This commit is contained in:
@@ -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}")]
|
||||
|
||||
Reference in New Issue
Block a user