diff --git a/.gitignore b/.gitignore index 6908286..bc18978 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,3 @@ docker/dist # Visual Studio .vs/ -UpgradeLog*.htm diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Analyzers/ChapterAnalyzer.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Analyzers/ChapterAnalyzer.cs index 1474d74..0b146a7 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Analyzers/ChapterAnalyzer.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Analyzers/ChapterAnalyzer.cs @@ -149,16 +149,19 @@ public class ChapterAnalyzer : IMediaFileAnalyzer continue; } - // Check for possibility of overlapping keywords - var overlap = Regex.IsMatch( - next.Name, - expression, - RegexOptions.None, - TimeSpan.FromSeconds(1)); - - if (overlap) + if (!string.IsNullOrWhiteSpace(next.Name)) { - continue; + // Check for possibility of overlapping keywords + var overlap = Regex.IsMatch( + next.Name, + expression, + RegexOptions.None, + TimeSpan.FromSeconds(1)); + + if (overlap) + { + continue; + } } matchingChapter = new(episode.EpisodeId, currentRange);