Formating
This commit is contained in:
parent
3c02426532
commit
fbe88e488d
@ -4,10 +4,10 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Xunit;
|
|
||||||
using Microsoft.Extensions.Logging;
|
|
||||||
using ConfusedPolarBear.Plugin.IntroSkipper.Analyzers;
|
using ConfusedPolarBear.Plugin.IntroSkipper.Analyzers;
|
||||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||||
|
using Microsoft.Extensions.Logging;
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Tests;
|
namespace ConfusedPolarBear.Plugin.IntroSkipper.Tests;
|
||||||
|
|
||||||
|
@ -24,7 +24,8 @@ public class TestEdl
|
|||||||
[Fact]
|
[Fact]
|
||||||
public void TestEdlInvalidSerialization()
|
public void TestEdlInvalidSerialization()
|
||||||
{
|
{
|
||||||
Assert.Throws<ArgumentException>(() => {
|
Assert.Throws<ArgumentException>(() =>
|
||||||
|
{
|
||||||
var intro = MakeIntro(0, 5);
|
var intro = MakeIntro(0, 5);
|
||||||
intro.ToEdl(EdlAction.None);
|
intro.ToEdl(EdlAction.None);
|
||||||
});
|
});
|
||||||
|
@ -47,7 +47,7 @@ public class VisualizationController(ILogger<VisualizationController> logger) :
|
|||||||
var seasonNumber = first.SeasonNumber;
|
var seasonNumber = first.SeasonNumber;
|
||||||
if (!showSeasons.TryGetValue(seriesId, out var showInfo))
|
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;
|
showSeasons[seriesId] = showInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
namespace ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||||
|
@ -195,7 +195,7 @@ public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
|
|||||||
|
|
||||||
lock (_serializationLock)
|
lock (_serializationLock)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
XmlSerializationHelper.SerializeToXml(introList, filePath);
|
XmlSerializationHelper.SerializeToXml(introList, filePath);
|
||||||
}
|
}
|
||||||
@ -380,7 +380,7 @@ public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
|
|||||||
}
|
}
|
||||||
else if (mode == AnalysisMode.Credits)
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user