Skip to content

Commit

Permalink
Use the minimum credit in chapter
Browse files Browse the repository at this point in the history
  • Loading branch information
AbandonedCart committed Apr 26, 2024
1 parent 85ea6de commit 28673a8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ public ChapterAnalyzer(ILogger<ChapterAnalyzer> logger)

var config = Plugin.Instance?.Configuration ?? new Configuration.PluginConfiguration();

var minDuration = config.MinimumIntroDuration;
var minDuration = mode == AnalysisMode.Introduction ?
config.MinimumIntroDuration :
config.MinimumCreditsDuration;
int maxDuration = mode == AnalysisMode.Introduction ?
config.MaximumIntroDuration :
config.MaximumCreditsDuration;
Expand Down

0 comments on commit 28673a8

Please sign in to comment.