How can i make this into a nzbget script?


Recommended Posts

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?

 

Link to comment

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

  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.