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.

Custom SABNZDB post processing script

Featured Replies

I was asked to post more info about the custom post-processing script I use with SAB.  I wrote a custom Python program that uses MKVMerge to do a few different things...

 

  • Strip out subtitles
  • Strip out unwanted language streams
  • Strip out unwanted audio streams
  • Ignore MKV's that don't meet a certain size
  • Move the resulting MKV to the Movies share

 

Download these two files...

 

http://tinyurl.com/8bqmy4h

http://tinyurl.com/bs62tgt

 

Here we go...

 

Step 1...  Create a new folder /mkvmerge under the 'custom' folder already on the Unraid install.

Step 2...  unzip mkvmerge.zip into the newly created folder.

Step 3...  Modify go script, adding 'installpkg /boot/custom/mkvmerge/*.tgz'

Step 4...  Either reboot or run the above command manually

 

Now you should have a working copy of MKVMerge.  Try running 'mkvmerge' from the root prompt, you should see the list of MKVMerge command line options displayed.

 

Next unzip the contents of sab-post-process.zip into the /scripts folder under your sabnzdb install.

 

The config items in autoProcessMovie.cfg are currently defaulted as...

 

[MKVMerge]

preferredLanguage=eng

preferredAudioStream=DTS

keepSubTitles=False

minSize=3

finalDest=/mnt/user/movies

 

The config items are pretty self explanatory.

 

The last step is to set up sabnzdb to execute sabToCouchPotato.py when it post processes movies.  This is exactly the same way that SickBeard is setup when post processing tv shows.  There are tutorials on that, somewhere.

 

Lastly, I'm not a Python programmer, I've done a lot of programming in other languages over the last 25 years, but I don't claim to know enough Python to fill a thimble.  The script works fine 99% of the time, the other 1% I've never really care enough about to debug it.

 

Try it and let me know if you have any questions, I'd be happy to answer them as best I can.

 

 

This sounds cool.  I have a possible noob question.  How does it know which downloads are movies?

Great Bob. Thanks!

  • Author

Dang, I forgot to add a python program (sabToCouchPotato.py) to the sab-post-processing.zip file.  It's been added to the original zip and you'll have to download a new one.  It doesn't really have anything to do with CouchPotato, I just followed the SickBeard naming convention.

 

The missing python program is what figures out exactly what file is the mkv and then passes the path and file name to the following programs.

 

SAB is then setup to execute the missing program (sabToCouchPotato.py), similar to how you set up the post processing script for SickBeard.

 

Sorry for the confusion!!!!

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.