Update NostrStreamer/Controllers/PlaylistController.cs
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-03-21 12:26:40 +00:00
parent edd5607157
commit 0d9561eb84

View File

@ -122,6 +122,7 @@ public class PlaylistController : Controller
var userStream = streamManager.GetStream(); var userStream = streamManager.GetStream();
if (userStream.Endpoint == default) if (userStream.Endpoint == default)
{ {
_logger.LogWarning("Failed to get stream for {stream}: No endpoint found", id);
Response.StatusCode = 404; Response.StatusCode = 404;
return; return;
} }
@ -129,6 +130,7 @@ public class PlaylistController : Controller
var hlsCtx = await GetHlsCtx(userStream); var hlsCtx = await GetHlsCtx(userStream);
if (string.IsNullOrEmpty(hlsCtx)) if (string.IsNullOrEmpty(hlsCtx))
{ {
_logger.LogWarning("Failed to get stream for {stream}: No hls_ctx found", id);
Response.StatusCode = 404; Response.StatusCode = 404;
return; return;
} }