Don't run chapter analyzer with an empty regex
This commit is contained in:
parent
0afc4cab41
commit
4bb978639c
@ -38,6 +38,11 @@ public class ChapterAnalyzer : IMediaFileAnalyzer
|
||||
Plugin.Instance!.Configuration.ChapterAnalyzerIntroductionPattern :
|
||||
Plugin.Instance!.Configuration.ChapterAnalyzerEndCreditsPattern;
|
||||
|
||||
if (string.IsNullOrWhiteSpace(expression))
|
||||
{
|
||||
return analysisQueue;
|
||||
}
|
||||
|
||||
foreach (var episode in analysisQueue)
|
||||
{
|
||||
if (cancellationToken.IsCancellationRequested)
|
||||
|
Loading…
x
Reference in New Issue
Block a user