Formating

This commit is contained in:
rlauu 2024-10-09 19:03:17 +02:00
parent 3c02426532
commit fbe88e488d
5 changed files with 8 additions and 7 deletions

View File

@ -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;

View File

@ -24,7 +24,8 @@ public class TestEdl
[Fact]
public void TestEdlInvalidSerialization()
{
Assert.Throws<ArgumentException>(() => {
Assert.Throws<ArgumentException>(() =>
{
var intro = MakeIntro(0, 5);
intro.ToEdl(EdlAction.None);
});

View File

@ -47,7 +47,7 @@ public class VisualizationController(ILogger<VisualizationController> 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;
}

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
namespace ConfusedPolarBear.Plugin.IntroSkipper.Data;

View File

@ -195,7 +195,7 @@ public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
lock (_serializationLock)
{
try
try
{
XmlSerializationHelper.SerializeToXml(introList, filePath);
}
@ -380,7 +380,7 @@ public class Plugin : BasePlugin<PluginConfiguration>, 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);
}
}