From fbe88e488d64182da5603f6b900503c9ab53fb30 Mon Sep 17 00:00:00 2001 From: rlauu <46294892+rlauu@users.noreply.github.com> Date: Wed, 9 Oct 2024 19:03:17 +0200 Subject: [PATCH] Formating --- .../TestAudioFingerprinting.cs | 4 ++-- ConfusedPolarBear.Plugin.IntroSkipper.Tests/TestEdl.cs | 3 ++- .../Controllers/VisualizationController.cs | 2 +- .../Data/TimeRangeHelpers.cs | 2 +- ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs | 4 ++-- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper.Tests/TestAudioFingerprinting.cs b/ConfusedPolarBear.Plugin.IntroSkipper.Tests/TestAudioFingerprinting.cs index 9c34fcd..b3c354a 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper.Tests/TestAudioFingerprinting.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper.Tests/TestAudioFingerprinting.cs @@ -4,10 +4,10 @@ using System; using System.Collections.Generic; -using Xunit; -using Microsoft.Extensions.Logging; using ConfusedPolarBear.Plugin.IntroSkipper.Analyzers; using ConfusedPolarBear.Plugin.IntroSkipper.Data; +using Microsoft.Extensions.Logging; +using Xunit; namespace ConfusedPolarBear.Plugin.IntroSkipper.Tests; diff --git a/ConfusedPolarBear.Plugin.IntroSkipper.Tests/TestEdl.cs b/ConfusedPolarBear.Plugin.IntroSkipper.Tests/TestEdl.cs index 9172b25..fe86c00 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper.Tests/TestEdl.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper.Tests/TestEdl.cs @@ -24,7 +24,8 @@ public class TestEdl [Fact] public void TestEdlInvalidSerialization() { - Assert.Throws(() => { + Assert.Throws(() => + { var intro = MakeIntro(0, 5); intro.ToEdl(EdlAction.None); }); diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/VisualizationController.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/VisualizationController.cs index f0dceed..5d3ae9f 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/VisualizationController.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/VisualizationController.cs @@ -47,7 +47,7 @@ public class VisualizationController(ILogger logger) : var seasonNumber = first.SeasonNumber; if (!showSeasons.TryGetValue(seriesId, out var showInfo)) { - showInfo = new ShowInfos { SeriesName = first.SeriesName, ProductionYear = GetProductionYear(seriesId), LibraryName = GetLibraryName(seriesId), Seasons = [] }; + showInfo = new ShowInfos { SeriesName = first.SeriesName, ProductionYear = GetProductionYear(seriesId), LibraryName = GetLibraryName(seriesId), Seasons = [] }; showSeasons[seriesId] = showInfo; } diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Data/TimeRangeHelpers.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Data/TimeRangeHelpers.cs index 57c936b..5765516 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Data/TimeRangeHelpers.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Data/TimeRangeHelpers.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; namespace ConfusedPolarBear.Plugin.IntroSkipper.Data; diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs index a17c12c..947da63 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs @@ -195,7 +195,7 @@ public class Plugin : BasePlugin, IHasWebPages lock (_serializationLock) { - try + try { XmlSerializationHelper.SerializeToXml(introList, filePath); } @@ -380,7 +380,7 @@ public class Plugin : BasePlugin, IHasWebPages } else if (mode == AnalysisMode.Credits) { - Instance!.Credits.AddOrUpdate(intro.Key, intro.Value, (key, oldValue) => intro.Value); + Instance!.Credits.AddOrUpdate(intro.Key, intro.Value, (key, oldValue) => intro.Value); } }