Restore per season progress updates
This commit is contained in:
parent
1ca7a9ec86
commit
384784527a
@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v0.1.6.0
|
||||||
|
* Write EDL files with intro timestamps
|
||||||
|
* Restore per season status updates
|
||||||
|
|
||||||
## v0.1.5.0 (2022-06-17)
|
## v0.1.5.0 (2022-06-17)
|
||||||
* Use `ffmpeg` to generate audio fingerprints instead of `fpcalc`
|
* Use `ffmpeg` to generate audio fingerprints instead of `fpcalc`
|
||||||
* Requires that the installed version of `ffmpeg`:
|
* Requires that the installed version of `ffmpeg`:
|
||||||
|
@ -173,14 +173,38 @@ public class FingerprinterTask : IScheduledTask
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var episodes = season.Value;
|
||||||
|
var unanalyzed = false;
|
||||||
|
|
||||||
|
// Only log an analysis message if there are unanalyzed episodes in this season.
|
||||||
|
foreach (var episode in episodes)
|
||||||
|
{
|
||||||
|
if (!Plugin.Instance!.Intros.ContainsKey(episode.EpisodeId))
|
||||||
|
{
|
||||||
|
unanalyzed = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (unanalyzed)
|
||||||
|
{
|
||||||
_logger.LogInformation(
|
_logger.LogInformation(
|
||||||
"Analyzing {Count} episodes from {Name} season {Season}",
|
"Analyzing {Count} episodes from {Name} season {Season}",
|
||||||
season.Value.Count,
|
season.Value.Count,
|
||||||
first.SeriesName,
|
first.SeriesName,
|
||||||
first.SeasonNumber);
|
first.SeasonNumber);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_logger.LogDebug(
|
||||||
|
"All episodes from {Name} season {Season} have already been analyzed",
|
||||||
|
first.SeriesName,
|
||||||
|
first.SeasonNumber);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Ensure there are an even number of episodes
|
// Ensure there are an even number of episodes
|
||||||
var episodes = season.Value;
|
|
||||||
if (episodes.Count % 2 != 0)
|
if (episodes.Count % 2 != 0)
|
||||||
{
|
{
|
||||||
episodes.Add(episodes[episodes.Count - 2]);
|
episodes.Add(episodes[episodes.Count - 2]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user