Jump to content

How can i make this into a nzbget script?


EMKO

Recommended Posts

Posted

I don't need subtitles to be default ON on my tv shows as they are all in English and for some reason WEBDL all have subtitles that default to ON, i found a way to change it to off  but i want to make a post processing script out of it.

 

find . -name "*.mkv" -exec mkvpropedit {} --edit track:s1 --set flag-default=0 \;

 

how can i make something like that into  a script that will work for nzbget?

 

i think it should be mkvpropedit filename.mkv --edit track:s1 --set flag-default=0 now how do i get nzbget to do this?

 

Posted

hugbug the guy who created nzbget made this for me :) works great save it as .sh if anyone needs something like that.

 

#!/bin/sh 

#######################################
### NZBGET POST-PROCESSING SCRIPT   ###

# Change default subtitles to 0.
#
# The script changes default subtitles to 0 on WEBDL tv shows.
#
# The long description can have multiple paragraphs when needed. Like
# this one.

### NZBGET POST-PROCESSING SCRIPT   ###
#######################################

POSTPROCESS_SUCCESS=93
POSTPROCESS_ERROR=94

echo "Processing..."

cd $NZBPP_DIRECTORY
find . -name "*.mkv" -exec mkvpropedit {} --edit track:s1 --set flag-default=0 \;

exit $POSTPROCESS_SUCCESS

Archived

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

×
×
  • Create New...