This commit is contained in:
rlauu 2024-11-05 15:30:25 +01:00
parent b9194334c6
commit 16b834b553

View File

@ -47,7 +47,7 @@ namespace IntroSkipper.Providers
} }
// Add outro/credits segment if found // Add outro/credits segment if found
if (itemSegments.TryGetValue(AnalysisMode.Introduction, out var creditSegment) && creditSegment.Valid) if (itemSegments.TryGetValue(AnalysisMode.Credits, out var creditSegment) && creditSegment.Valid)
{ {
var creditEndTicks = (long)(creditSegment.End * TimeSpan.TicksPerSecond); var creditEndTicks = (long)(creditSegment.End * TimeSpan.TicksPerSecond);
var runTimeTicks = Plugin.Instance.GetItem(request.ItemId)?.RunTimeTicks ?? long.MaxValue; var runTimeTicks = Plugin.Instance.GetItem(request.ItemId)?.RunTimeTicks ?? long.MaxValue;