Skip to content

Commit

Permalink
do not search for downloaded seasons
Browse files Browse the repository at this point in the history
  • Loading branch information
p-hueber committed Jan 3, 2024
1 parent 33a8b56 commit bd57e31
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
program is restarted.
- Do not ignore seasons that are already monitored.
- Make sure the series is monitored when monitoring a season.
- Ignore seasons that were downloaded already.
6 changes: 6 additions & 0 deletions src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ pub async fn search_next(
}

let next_season_num = next_season.season_number;

if next_season.statistics.episode_count == next_season.statistics.total_episode_count {
debug!(num = next_season_num, "skip already downloaded season");
return Ok(());
}

info!(num = next_season_num, "Searching next season");

sonarr_client
Expand Down

0 comments on commit bd57e31

Please sign in to comment.