Skip to content

Commit

Permalink
Consider seasons without known episodes
Browse files Browse the repository at this point in the history
If there is zero total episodes, the season should not be considered as
downloaded.
  • Loading branch information
p-hueber committed Dec 1, 2024
1 parent 72a6a0c commit 4b28474
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ impl Actor {
}

if let Some(statistics) = &next_season.statistics {
if statistics.episode_file_count == statistics.total_episode_count {
if statistics.episode_file_count == statistics.total_episode_count
&& statistics.total_episode_count > 0
{
debug!(num = next_season_num, "skip already downloaded season");
return Ok(());
}
Expand Down

0 comments on commit 4b28474

Please sign in to comment.