Sonarr not deleting lower quality individual episodes on quality/cutoff upgrade of episode

Sonarr version (exact version): 2.0.0.5163

Mono version (if Sonarr is not running on Windows): 5.10.1.4

OS: Ubuntu 16.04

Debug logs: https://drive.google.com/file/d/1jBSuNWyUAgo0FlpN8wt1UW_8Lvxeb6pi/view?usp=sharing

Description of issue:

Example: I just checked an episode of a show (Alienst) Sonarr is monitoring…here is the history:

The following happens automatically:

Sonarr Downloaded SD file…then an hour later
Sonarr Downloaded 720P File

At this point both remain, Sonar does not delete the SD file, however it does state in the history of the episode that it deleted it, with the little trash icon.

A few hours later…

Sonarr downloaded 1080 file, sonarr removed the SD and 720P files.

Any ideas why this is happening?

We’re going to need to see logs that cover the deletion of the SD file and import of the 720p file. I’m not seeing Alienst anywhere in the logs you posted.

I just figured out what the issue is, but I don’t know how to go about fixing it.

Sonarr remembers what the file was downloaded as, where in most cases its an MKV, however I am using the following:

https://github.com/mdhiggins/sickbeard_mp4_automator

The post process is enabled in Sonarr, however Sonarrs history of the file stays as what was originally grabbed, which for example AlienstS01E01.MKV, when the actual file was converted to a MP4.

So the question is, on upgrade from cutoff settings, how do we get Sonarr to realize “hey lets delete lower quality episode, and ignore the file name extension”

If I go in to Sonarr and manually hit the red x on the file, it know it was converted/changed to the MP4 and it deletes it fine. I guess this is because of general scans of the series folders it does, but for some reason that doesn’t hit file history that the cutoff automated deletion uses.

I really appreciate any help you can give.

That’s not going to happen, if the file extension is changed Sonarr won’t know about it until it rescans the series (every 12 hours).

A couple options immediately come to mind:

  • Convert before Sonarr imports (post-processing script in your download client)
  • Rescan the series after converting (use Sonarr’s API to tell it to rescan the series folder

I’m not too smart on these things, can you tell me how I can do this?

There may be someone else that has done it, but you’d need to find the correct series ID then send a command for rescan series https://github.com/Sonarr/Sonarr/wiki/Command#rescanseries

You can get all series https://github.com/Sonarr/Sonarr/wiki/Series via the series endpoint and then find the correct series ID via the path or something else.

You know how plex has this feature:
"Run a partial scan when changes are detected

When changes to library folders are detected, only scan the folder that changed."

Does Sonarr have some setting like this? If not, is it maybe in the works or easy to customize?

No it doesn’t. That feature only works in some setups and isn’t something we plan to add to Sonarr.

Thanks for the fast response!

What I did was also tell sonarr to wait a little bit longer when episode are released to query to avoid the lower quality that gets pushed out first.

Does lowering the RSS Sync to 6 Hours, you think take a lot of resources? or make it every 4 hours maybe.

Thank you so much!

Using a delay profile?

There really isn’t a reason to do that, you’re better off with a delay profile to delay grabbing lower quality releases and let Sonarr see the results as soon as possible with a faster RSS Sync time.

Yes, with delay profile. Thanks, I will try this.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.