private void UpdateChunklist(Broadcast broadcast, string baseUrl, ref List<string> playlist, ref bool liveStream) { List<string> currentChunks; try { currentChunks = GetPlaylistUrls(baseUrl + "chunklist.m3u8"); } catch (Exception) { liveStream = false; return; } playlist.AddRange(currentChunks.Except(playlist)); playlist = playlist.Except(_localFileActions.GetValidFiles(broadcast.username, broadcast.id)).ToList(); }