Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Sabnzb pre processing question

Featured Replies

I'm experimenting with sabnzbd's pre-processing / pre-queue scripting, according to http://wiki.sabnzbd.org/user-pre-queue-script.

I've create a simple python script, just for testing purposes, the only thing it does is return '0' indicating sabnzbd should REFUSE the nzb that in this case, sickbeard offers. The script is saved as 'test.py' in sabnzb's script folder, and is selected as pre-queue script in sab's config. I've made post processing scripts in python before and those gave me no problem, and those were a lot more complex ;)

 

I can see in sabnzbd's logging that it is actually called, and says it accepts the nzb, i dont know why, since i return 0 as in REFUSED?

2012-08-10 14:59:15,592::INFO::[newsunpack:1417] Running pre-queue script ['/mnt/cache/Apps/sabnzbd/scripts/pre.py', 'Breaking.Bad.S05E02.Madrigal.HDTV.x264-FQM', '', 'tvseries', '', '-100', '330523175', 'alt.binaries.multimedia alt.binaries.teevee', '', '', '', '']
2012-08-10 14:59:15,595::INFO::[newsunpack:1439] Pre-Q accepts Breaking.Bad.S05E02.Madrigal.HDTV.x264-FQM

 

the 'script' itself:

#!/usr/bin/env python
import os
import sys

print "0"
sys.exit(0)

 

What am i missing here? Is the path to the python runtime ok?

The 'script' runs ok from the command line, do i need to do something else to make it work from sabnzb?

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.