Post processing script

Sonarr version : 3.0.3.741
(not sure if this is a bug or a feature request)

i have a very basic post processing (bash) script i use for testing script issues;

#!/bin/bash
set -o pipefail
set > /media/downloads/convert/run.txt

its set to run on import and upgrade, and works fine when i hit the test button (it also works on rename if i add that and rename a file).

if i manually import a file the script doesnt appear to be triggered.

could we get the import option to trigger on manual imports as well please?

It already does execute. Unless by manual import you mean you moved the file and rescanned the series, in which case no scripts are executed (no notifications are sent either) and we don’t have plans to do that.

no, i mean i clicked on the “manual file import” button at the top of the series and imported files that i had converted to x265 (the x264 files were still there if that makes any difference).

the script is not running when you do that, and there appears to be no reference to it in the trace logs (https://pastebin.com/Y98ePNWq)

when i do a rename there is a reference to it in the trace logs (https://pastebin.com/qMMD7tWX)

perhaps its an upgrade, not an import issue but both options are ticked in the connector.

I don’t see an import in the import log at all.

starts at line 230, imports the file at 281, ends at 375

you dont see those?

note - there are two separate logs, one for each event

btw, the script is getting “Download” events. are those from On Import or the unchecked On Grab?

Ahh, I was looking for the copy/move event and missed that you’re doing if from the series page. That’s not considered a download/upgrade because it’s already in the series folder. This is expected behaviour currently and at the moment not something we plan to include in those events.

On Import, it was renamed in v3, but we didn’t touch the event names passed to custom scripts.

ah, ok, i’ll convert them to a folder outside the current structure and import them via the wanted action instead, that will help clean up the old files as well as trigger an import/download event so probably a better idea anyway.

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