Skip to content

Improving repair check #64

@abhineetgupta

Description

@abhineetgupta

In the following line, I would suggest adding the following condition to make the script more robust:

... and item.monitored:

Without this condition, the following bug occurs:

  1. Let's say, a Series has 3 released seasons, and Series will be continuing to 4th season.
  2. Season 3 is monitored, but is missing files.
  3. I change Series Monitoring to "Future Episodes". In sonarr, this state is set as Season 3 == monitored, but none of the episodes in the season are monitored.
  4. Now state in Sonarr is - season 3 is monitored and all its episodes are unmonitored.
  5. During repair process, item.reason == 'MissingFromDisk' is True for the season 3 episodes because that was the last state before I unmonitored them. Therefore the script tries to repair them even though that is not the intended behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions