[Python] sabnma - Notify My Android PP script.

Come up with a useful post-processing script? Share it here!
canaan
Newbie
Newbie
Posts: 4
Joined: October 13th, 2012, 9:39 pm

Re: [Python] sabnma - Notify My Android PP script.

Post by canaan » October 15th, 2012, 10:53 pm

thanks for the quick reply, I actually removed the start of the path since I didnt think it was important. sorry about that. The full path is:

ionice: can't execute '/volumeUSB1/usbshare/sabnzbd/scripts/sabnma.py': No such file or directory

I have no idea what ionice is, heh.
I should also say that my scripts folder is a different directory to my SABnzbd install folder. SAB is installed on volume1 and the scripts on a USB (obviously)

sweetie
Full Member
Full Member
Posts: 117
Joined: May 10th, 2009, 10:47 am

Re: [Python] sabnma - Notify My Android PP script.

Post by sweetie » October 16th, 2012, 11:02 am

canaan wrote:thanks for the quick reply, I actually removed the start of the path since I didnt think it was important. sorry about that. The full path is:

ionice: can't execute '/volumeUSB1/usbshare/sabnzbd/scripts/sabnma.py': No such file or directory

I have no idea what ionice is, heh.
I should also say that my scripts folder is a different directory to my SABnzbd install folder. SAB is installed on volume1 and the scripts on a USB (obviously)
Ah right. Well the only suggestion I have is to to ensure that 'IONice Paramaters' is blank in switches tab in config; otherwise make doubley sure that your path is set correctly in config.

If all else fails, maybe consider moving scripts into your sabnzbd directory.

User avatar
Mickroz
Newbie
Newbie
Posts: 1
Joined: January 7th, 2013, 11:19 am

Re: [Python] sabnma - Notify My Android PP script.

Post by Mickroz » January 7th, 2013, 11:30 am

I had the same problem, i fixed it by changing the python line according to my install in this case:

Code: Select all

#!/usr/local/python/bin/python2 -OO
Read more on this: http://forums.sabnzbd.org/viewtopic.php?t=10595

canaan
Newbie
Newbie
Posts: 4
Joined: October 13th, 2012, 9:39 pm

Re: [Python] sabnma - Notify My Android PP script.

Post by canaan » March 24th, 2013, 2:06 pm

thanks for your reply Mickroz. I think this pointed me in the right direction.
Do you think this could be because I have python 2.7 installed?
however my new error is:
Unknown option: -
usage: /usr/local/python/bin/python2 [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
I am using the line you suggested:
#!/usr/local/python/bin/python2 -OO

methanoid
Newbie
Newbie
Posts: 36
Joined: March 7th, 2008, 6:33 am

Re: [Python] sabnma - Notify My Android PP script.

Post by methanoid » July 22nd, 2014, 6:50 am

This seems to rely on Linux installed Python? What about people running SAB from Windows EXE? How does this work for us, please?

sweetie
Full Member
Full Member
Posts: 117
Joined: May 10th, 2009, 10:47 am

Re: [Python] sabnma - Notify My Android PP script.

Post by sweetie » July 26th, 2014, 6:21 am

methanoid wrote:This seems to rely on Linux installed Python? What about people running SAB from Windows EXE? How does this work for us, please?
It doesn't; should work on Windows too.

Same instructions.

pechkin000
Newbie
Newbie
Posts: 1
Joined: August 7th, 2014, 12:05 pm

Re: [Python] sabnma - Notify My Android PP script.

Post by pechkin000 » August 7th, 2014, 12:08 pm

Sweetie, I just wanted to say thanks for a great script. It works flawlessly and it was exactly what I was looking for! Thanks

nimbu
Newbie
Newbie
Posts: 1
Joined: October 14th, 2014, 1:02 pm

Re: [Python] sabnma - Notify My Android PP script.

Post by nimbu » October 14th, 2014, 1:14 pm

Thanks for a great script!

Just some things to add though please bear in mind I am no Linux guru.

I wanted to run this on my synology box and YMMV:

1) The location of the scripts folder for me was:

/usr/local/sabnzbd/var/scripts

2) Downloaded and followed the prep of files instructions

3) Used WinSCP to transfer the files to the above folder. Note you must login as root not Admin, though the passwords are the same.
4) Connect to the box using putty
5) changed the owner of the files and the pynma folder to the sabnzbd internal user that is created when you install the sabnzbd package:
chown sabnzbd sabnma.py
chown sabnzbd test.py
chown -R sabnzbd pynma/

6) I dont know if this is required but I made each of the scripts executable too:
chmod +X sabnma.py
chmod +X test.py

7) Assigned the script to my categories
8) Started off a test download, got my notification when it was done.

So once again, thanks for the script. I hope that the above might help someone else.

extremepunk
Newbie
Newbie
Posts: 6
Joined: February 1st, 2015, 2:27 am

Re: [Python] sabnma - Notify My Android PP script.

Post by extremepunk » March 26th, 2017, 8:46 pm

Hi everyone

I have been following the insertion of this script as i have a NMA account

After putting my API into the script as suggested and point SABnzbd to the scripts folder successfully, upon running a test message the error i get is

"Notification script returned exit code -1 and output "Cannot run script /raid/NAS_Public/Scripts/sabnma.py "

Any ideas what this means
I am a complete newbie in terms of scripts

Actually sickbeard also shows "2017-03-30 17:14:30 SEARCHQUEUE-MANUAL-SEARCH :: NMA_Notifier: error 1 : [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed ()". Looks like something is broken on NMAs side

Post Reply