I was using Sonarr v2 and with “path” and “arguments” fields, my scripts runs ok.
Now, on version 3 beta without arguments field, I can’t make it run.
I’ve tried so many things, but it didin’t works at all.
I got this error
My script haven’t #! line. When I add, I got some others errors (can’t find path, file; errors 127, 2).
I think my problem is so simple, but I can’t figure out a solution.
All that my script do is copy all subtitles from torrent folder or subfolder and rename them with .pt.srt (language) or .pt.forced.srt to same folder of video.mkv file which sonarr copied.
EventType = environ.get('sonarr_eventtype')
#fileSubs.write("\nEventType: "+EventType)
#Event type: Download ##Download or Upgrade, same answer
if EventType == "Test":
sys.exit("Test event ok")
But before the code reach this part, one file .txt should be created.
I also tested clean code only with creating txt
Not working even doing this change.
I’ll try few things, see if there’s something with seedbox.
If I solve this, I’ll come back with the solution, else I’ll revert back to v2.
I appreciate both your helps.