fix editorconfig and run code cleanup (#2324)

* fix formatting rules

* reformat ersatztv

* reformat ersatztv.application

* reformat ersatztv.core

* refactor ersatztv.core.tests

* reformat ersatztv.ffmpeg

* reformat ersatztv.ffmpeg.tests

* reformat ersatztv.infrastructure

* cleanup infra mysql

* cleanup infra sqlite

* cleanup infra tests

* cleanup ersatztv.scanner

* cleanup ersatztv.scanner.tests

* sln cleanup

* update dependencies
This commit is contained in:
Jason Dove
2025-08-16 14:44:48 +00:00
committed by GitHub
parent 6d32dac51b
commit 5d081ceeff
331 changed files with 4908 additions and 4271 deletions
@@ -41,7 +41,13 @@ public class TroubleshootController(
Option<int> ss = seekSeconds > 0 ? seekSeconds : Option<int>.None;
Either<BaseError, PlayoutItemResult> result = await mediator.Send(
new PrepareTroubleshootingPlayback(mediaItem, ffmpegProfile, watermark, graphicsElement, subtitleId, ss),
new PrepareTroubleshootingPlayback(
mediaItem,
ffmpegProfile,
watermark,
graphicsElement,
subtitleId,
ss),
cancellationToken);
if (result.IsLeft)
@@ -49,7 +55,7 @@ public class TroubleshootController(
return NotFound();
}
foreach (var playoutItemResult in result.RightToSeq())
foreach (PlayoutItemResult playoutItemResult in result.RightToSeq())
{
Either<BaseError, MediaItemInfo> maybeMediaInfo =
await mediator.Send(new GetMediaItemInfo(mediaItem), cancellationToken);
@@ -70,7 +76,10 @@ public class TroubleshootController(
troubleshootingInfo.Watermarks.RemoveAll(p => !watermark.Contains(p.Id));
await channelWriter.WriteAsync(
new StartTroubleshootingPlayback(sessionId, playoutItemResult, mediaInfo,
new StartTroubleshootingPlayback(
sessionId,
playoutItemResult,
mediaInfo,
troubleshootingInfo),
cancellationToken);
@@ -92,7 +101,6 @@ public class TroubleshootController(
{
return Redirect("~/iptv/session/.troubleshooting/live.m3u8");
}
}
finally
{
@@ -141,5 +149,4 @@ public class TroubleshootController(
return NotFound();
}
}