Last few months Sonarr has started to download old episodes that I have already watched and deleted several weeks or even months ago.
I have set “Ignore Deleted Episodes”=Yes, so the episodes should not be monitored after deletion.
If I look at the series, I see that the erroneously downloaded episode suddenly has the monitored flag set for that episode (only for that particular episode in the series).
It appears that the monitored flag is randomly set back for old deleted episodes… Any clue of how to troubleshoot this?
Was that setting enabled when the episode was deleted?
There isn’t an easy way to do so, the only automated way Sonarr would monitor an episode would be if it was a new episode in a season that is monitored, which would mean it didn’t come back from TheTVDB during one refresh then came back in a subsequent refresh, which for one episode is pretty unlikely. The only other way would be through the API/UI (which will get logged in ((debug logs))) as a PUT to the episode (you can check exactly what it shows by toggling an episode and checking the log).
I had set the “Ignore Deleted Episodes”=Yes, more than a year ago, so it was enabled when it was deleted.
2.I noticed that although all the episodes are unmonitored (because they were deleted), the season is still monitored. I guess that is not toggled after all episodes in the season has been deleted (and none is monitored). In my latest example, episode number 5 out of 8 suddenly got the monitored flag set (and it was downloaded).
To test, as you suggested, I enabled Debug Logs, and toggled the monitored status of an episode on/off. However, this was not show in the log…?
Correct, it is not, unmonitoring the season is a bit tricky for the latest season since more episodes might be added to the season later (TheTVDB can be out of date/a bit unreliable at times, as evidenced here). We might be able to do something if all episodes in the season aren’t monitored and it’s not the latest season though.
The API request would be logged, but there isn’t anything else logged for it.