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
|
# Visual Studio
|
||||||
.vs/
|
.vs/
|
||||||
UpgradeLog*.htm
|
|
||||||
|
@ -149,16 +149,19 @@ public class ChapterAnalyzer : IMediaFileAnalyzer
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for possibility of overlapping keywords
|
if (!string.IsNullOrWhiteSpace(next.Name))
|
||||||
var overlap = Regex.IsMatch(
|
|
||||||
next.Name,
|
|
||||||
expression,
|
|
||||||
RegexOptions.None,
|
|
||||||
TimeSpan.FromSeconds(1));
|
|
||||||
|
|
||||||
if (overlap)
|
|
||||||
{
|
{
|
||||||
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);
|
matchingChapter = new(episode.EpisodeId, currentRange);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user