Search found 8 matches

by radadar
September 27th, 2018, 11:00 am
Forum: General Help
Topic: Pre-queue script not running
Replies: 14
Views: 4452

Re: Pre-queue script not running

Thanks safihre, I guess I thought I didn't need the escapes because it was inside the literal "" but that makes total sense.
by radadar
September 26th, 2018, 9:57 pm
Forum: General Help
Topic: Pre-queue script not running
Replies: 14
Views: 4452

Re: Pre-queue script not running

OK thanks everyone for the help I think I figured out my big problem anyways. Looks like all I needed to do was rename the interpreter from "py" to "python". I did actually run across a permissions problem as well as JCFP had assumed. I tried pointing directly to a folder but I g...
by radadar
September 26th, 2018, 9:44 pm
Forum: General Help
Topic: Pre-queue script not running
Replies: 14
Views: 4452

Re: Pre-queue script not running

I would enable Debug logging in the Status and Interface settings window. Then try again to add an NZB (in a paused queue). Then download the log by clicking Show Logging in the Status and Interface settings window. There you can see, near the end what the output of the script was. Ok I did this an...
by radadar
September 26th, 2018, 9:40 pm
Forum: General Help
Topic: Pre-queue script not running
Replies: 14
Views: 4452

Re: Pre-queue script not running

jcfp wrote: September 26th, 2018, 6:42 am Using a relative filename here may be the problem. It assumes that the script has a work dir, that it is always the same, and writable at that. That might be true in your tests but not when run by sab.
So I had already tried this by pointing to various other locations directly and none helped.
by radadar
September 26th, 2018, 12:28 am
Forum: General Help
Topic: Pre-queue script not running
Replies: 14
Views: 4452

Re: Pre-queue script not running

So I tried the changes to the script and it still wouldn't execute. I think there is still something wrong with how SAB is executing the script because I also tried making a simple bat file that opens notepad (start notepad) just to make sure I could execute something and that worked fine. Even if I...
by radadar
September 25th, 2018, 11:51 pm
Forum: General Help
Topic: Pre-queue script not running
Replies: 14
Views: 4452

Re: Pre-queue script not running

Thanks for all the help here. Couple questions if you don't mind me asking. The indentation difference that I see in your code is only on the autofile.close(), correct? Wouldn't indenting that cause it to only execute if the above if statement is true? Also, I'm taking it to mean that that I should ...
by radadar
September 25th, 2018, 9:12 pm
Forum: General Help
Topic: Pre-queue script not running
Replies: 14
Views: 4452

Re: Pre-queue script not running

Thanks for the welcome. It's running on windows 10. I did select the script in switches. Here is the script: import sys acpt = 1 autofile = open("AutoNames.txt","a+") try: (scriptname, nzbname, postprocflags, category, script, prio, downloadsize, grouplist, showname, season, epis...
by radadar
September 25th, 2018, 8:37 pm
Forum: General Help
Topic: Pre-queue script not running
Replies: 14
Views: 4452

Pre-queue script not running

I've written a pre-queue script in python and it doesn't seem to want to execute. I have ".py" added to PATHEXT and I have python installed on the computer that the SABnzbd is running on. I know that the script isn't being executed because it will make a log file on execution and this is d...