Sonarr version (exact version): 2.0.0.4389
Mono version (if Sonarr is not running on Windows): 3.2.8
OS: Ubuntu 15.04
Description of issue: When using a post-processing script with SabNZBD to convert videos to MP4 before being picked up by Sonarr, multiple downloads finish downloading and stack up in the post-processing queue. When the script calls Sonarr by API with the “downloadedepisodesscan” command, Sonarr doesn’t seem to “queue” the imports, and if called multiple times, it will begin moving multiple files simultaneously. This is a problem, because I have Sonarr set up to call a script after importing a file which uploads the directory to Amazon Cloud Drive via acd_cli and then delete the local directory to which Sonarr moves the episode files. If it is importing multiple files simultaneously, it will delete the directory while still in the process of moving a subsequent file.
With completed download handling this is unnecessary (as long as your script puts files in the same directory SAB extracted them to), Sonarr will see that the script is being run in SABnzbd and not import files until it completes. Since (by default) SAB places files inside a job folder this should also avoid the deletion issue.
Sonarr will run up to 3 commands in parallel (if they aren’t the same command with the same paramters, duplicates are discarded). We do have an issue logged to prevent this behaviour though:
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.