check if valid

This commit is contained in:
rlauu 2024-10-20 13:35:33 +02:00 committed by TwistedUmbrellaX
parent fe57d4defa
commit 4d7dbf7f0f
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ public class BlackFrameAnalyzer : IMediaFileAnalyzer
searchDistance, searchDistance,
_blackFrameMinimumPercentage); _blackFrameMinimumPercentage);
if (credit is null) if (credit is null || !credit.Valid)
{ {
// If no credits were found, reset the first-episode search logic for the next episode in the sequence. // If no credits were found, reset the first-episode search logic for the next episode in the sequence.
searchStart = _minimumCreditsDuration; searchStart = _minimumCreditsDuration;

View File

@ -55,7 +55,7 @@ public class ChapterAnalyzer(ILogger<ChapterAnalyzer> logger) : IMediaFileAnalyz
expression, expression,
mode); mode);
if (skipRange is null) if (skipRange is null || !skipRange.Valid)
{ {
continue; continue;
} }