When SABnzbd finishes downloading a movie, it puts it in a folder. When Radarr moves that movie its final destination, it should remove the folder, but it isn't.
i would be very careful with this. Depending on the situation, some movies are downloaded without a folder. Radarr needs to be able to handle those situations or else you run the risk of deleting the parent/root folder.
I don't think this feature is needed from the radarr side of things. I use Sabnzbd to download, and include these extensions below in the cleanup list, radarr then deletes the folder no problem.
I like the idea of the downloader being nothing more than a downloader. Download the NZB and pass it back to whatever program/service requested the file. Let the program (Radarr in this case) grab the video file and dispose of the rest.
Probably worth mentioning this currently works with other download clients (utorrent etc). Though I do believe utorrent has an api call to delete the torrent and downloaded files.
i created a simple bat file and run it every night to fix this. (i use torrent+seedbox+resilio) if you like me use resilio just set the sync folder and all subfolder/files to hidden. use this script (change D:\Movie\ to your folder remeber to keep the * and . after):
del D:\Movie* /S /Q
FOR /D %%p IN ("D:\Movie*.*") DO rmdir "%%p" /s /q
jpborjas commented almost 4 years ago
When SABnzbd finishes downloading a movie, it puts it in a folder. When Radarr moves that movie its final destination, it should remove the folder, but it isn't.
| fedoranimus commented almost 4 years ago
Does the SAB-created folder still have contents in it? Radarr will delete the previous folder if it's empty, but not if there are files left-over.
| vortexrap commented almost 4 years ago
i would be very careful with this. Depending on the situation, some movies are downloaded without a folder. Radarr needs to be able to handle those situations or else you run the risk of deleting the parent/root folder.
| dcplaya commented almost 4 years ago
Happens to me, crap files are left over like samples, idx, nfo, ect files. I always have to delete folder manually.
| linds1234 commented almost 4 years ago
I don't think this feature is needed from the radarr side of things. I use Sabnzbd to download, and include these extensions below in the cleanup list, radarr then deletes the folder no problem.
.nfo, .sfv, .nzb, .srr, .info, .idx, .txt, .com, .db, .md5, .par2, .png, .1, .jpg, .jpeg, .url, .lnk, .html, .ini, .bat, .com, .exe, .scr, .sample
| fryfrog commented almost 4 years ago
I agree, this seems like something the downloader should handle.
| mikeschutz commented almost 4 years ago
I like the idea of the downloader being nothing more than a downloader. Download the NZB and pass it back to whatever program/service requested the file. Let the program (Radarr in this case) grab the video file and dispose of the rest.
sammy2142 commented over 3 years ago
Probably worth mentioning this currently works with other download clients (utorrent etc). Though I do believe utorrent has an api call to delete the torrent and downloaded files.
Vildibuks commented over 3 years ago
i created a simple bat file and run it every night to fix this. (i use torrent+seedbox+resilio) if you like me use resilio just set the sync folder and all subfolder/files to hidden. use this script (change D:\Movie\ to your folder remeber to keep the * and . after):
del D:\Movie* /S /Q FOR /D %%p IN ("D:\Movie*.*") DO rmdir "%%p" /s /q
Vildibuks commented over 3 years ago
woops sry. there need to be a linebreak like this:
del D:\Movie* /S /Q FOR /D %%p IN ("D:\Movie*.*") DO rmdir "%%p" /s /q
Vildibuks commented over 3 years ago
After /Q and before FOR
del D:\Movie* /S /Q
FOR /D %%p IN ("D:\Movie*.*") DO rmdir "%%p" /s /q
galli-leo commented almost 3 years ago Admin
Closing this is something your downloader should handle not radarr.