I have a post processing script in sabnzbd that remuxes .mp4 downloads into .mkv. Am I correct in assuming that NzbDrone’s Complete Download Handling won’t work with my configuration since the filename of the download is changed by the postprocessing script?
If SAB deletes extra files (nfo, sfv, etc) then it tells drone to import the video file, not the folder, which may cause issues, unless it gets the filename after the script runs, which it may do, I’m not sure though. Definitely worth testing it as you wouldn’t have to tell drone to import files after the disk scan completes.
If SAB doesn’t delete extra files you should have no issues.
The filename in the path in sabnzbd includes the original filename with the .mp4 extension. NzbDrone does not appear to find and import the video file when the filename has changed.
That is disappointing. Do you have SAB cleaning up extra files?
What API call are you using to check the sabnzbd queue for completed downloads? Is NzbDrone polling sabnzbd on a schedule or does sabnzbd somehow notify NzbDrone when a download is completed?
Polling SAB. Checking the history (same as it does for failed download handling). It uses the storage location from the history response as the path it uses when importing. Which looks like it matches the “Path” visible in the SAB UI.
Does is scan the folder for any valid video files or does it only look for the exact video file listed in the path?
Also, if I enable Complete Download Handling, will the drone factory folder still work for stuff I want to manually place there?
drone will attempt to find the parent folder and scan for any files, which should work as long as the parent folder name matches the the release (nzb) name, if SAB has renamed the folder (TV sorting in SAB in enabled) it would prevent the import process from working properly.
Whats the nzb/job name from SAB and whats the full output path?
EDIT: Yes, drone factory will still work.
Also did you change the path of the drone factory folder OR the path of the category in SAB (per the wiki)? - If not completed download handling will not import it, to prevent the two processes from stepping on each other.
It was a false alarm. It is working fine. I was doing a test with a .mp4 file, but because I already had a 720p version of the release in my series folder as an .mkv, NZBDrone was ignoring the standard definition version. I completely removed the 720p version and now it is working properly, even after my postprocessing script converts the .mp4 to .mkv.
awesome, thanks for reporting back. drone won’t replace an existing file with a lower quality version, so that makes sense.
This works so much better now. Originally, my postprocessing script would remux the files and then move them to the drone factor folder to be picked up by NZBDrone. Now I can remux and leave the files in their original location.
@digitoxin Yup, better handling of sab pp-script/unpack (ie. waiting for them to finish) was one of the primary goals of Completed Download Handling.
If you encounter problems with it, lemme know.