Only check next chapter is possible
This commit is contained in:
parent
05541b9db0
commit
7e2f1b56d5
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,4 +8,3 @@ docker/dist
|
||||
|
||||
# Visual Studio
|
||||
.vs/
|
||||
UpgradeLog*.htm
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user