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:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user