diff --git a/NostrStreamer/Controllers/PlaylistController.cs b/NostrStreamer/Controllers/PlaylistController.cs index 0107851..7aa3b24 100644 --- a/NostrStreamer/Controllers/PlaylistController.cs +++ b/NostrStreamer/Controllers/PlaylistController.cs @@ -186,6 +186,12 @@ public class PlaylistController : Controller var streamManager = await _streamManagerFactory.ForStream(id); var userStream = streamManager.GetStream(); + if (userStream.Recordings.Count == 0) + { + Response.StatusCode = 404; + return; + } + // https://developer.apple.com/documentation/http-live-streaming/video-on-demand-playlist-construction Response.ContentType = "application/vnd.apple.mpegurl"; await using var sw = new StreamWriter(Response.Body);