Sonarr version (exact version): 2.0.0.4472 OS: Windows 10 x64 Debug logs: Description of issue: Sometimes, I get leftover files on SAB’s TV category folder path. An example is this:
The current file that I have in my Sonarr TV series folder for Elementary is this:
E:\TV\Elementary\Season 05\Elementary - S05E11 - Be My Guest - [WEBDL-1080p - DRACULA].mkv
From the History itself, here’s my deduction:
1.) Sonarr sends the 720p webdl (or webrip, are these one and the same?) release and sends it to SAB.
2.) SAB completes the download, Sonarr process the file and transfers it to the Elementary folder BUT did not delete it from the SAB TV category folder.
3.) Sonarr detects an updated 1080p webdl release and sends it to SAB.
4.) SAB completes the download, Sonarr process the file, deletes the 720p release that is already on the Elementary folder, and transfers the 1080p release to the Elementary folder (successfully deleting it from the SAB TV category folder).
Sonarr moves the file, so there should be no video file left behind unless there was a duplicate.
If the folder is left behind check the logs for Sonarr failing to delete the folder, if it says it deleted it and there isn’t an error then to Sonarr it was successful.
I’ve seen cases where SAB was extracting the files twice so there would be two files in there and one was left behind. In fact you had this exact issue once before: Leftover files not being deleted
Sonarr will log that it’s deleting the folder at the end at debug (so debug logging would need to be enabled) to see that, but it it won’t delete it for some reason it should log a warning and if it failed to delete it should log an error.
You’re right! Sorry, I missed my own thread there. Thanks for pointing that out.
The only thing I see in the info logs related to the leftover movie file is this:
Line 7377: 17-1-11 02:46:05.6|Info|Sabnzbd|Adding report [Elementary.S05E11.720p.AMZN.WEBRip.DD5.1.x264-DRACULA] to the queue.
Line 7378: 17-1-11 02:46:06.8|Info|DownloadService|Report sent to SABnzbd. Elementary.S05E11.720p.AMZN.WEBRip.DD5.1.x264-DRACULA
Line 7382: 17-1-11 02:53:54.3|Info|Sabnzbd|Adding report [Elementary.S05E11.720p.AMZN.WEBRip.DD5.1.x264-DRACULA-Obfuscated] to the queue.
Line 7383: 17-1-11 02:53:54.5|Info|DownloadService|Report sent to SABnzbd. Elementary.S05E11.720p.AMZN.WEBRip.DD5.1.x264-DRACULA-Obfuscated