[Request] change default subtitles to 0 on WEBDL tv shows

Share your scripts or request scripts with specific features.
Forum rules
Please keep the forum clean - one topic per script. Questions not related to a specific script should be posted in Support forum.
Post Reply
emko
Posts: 2
Joined: 20 Oct 2015, 20:39

[Request] change default subtitles to 0 on WEBDL tv shows

Post by emko » 20 Oct 2015, 20:43

I dont need the subtitles to be default ON on the mkv files for WEBDL or any tv show as they are all English ,

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

that works but i can't figure out how to get this to work within nzbget as a post process script.

hugbug
Developer & Admin
Posts: 7514
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [Request] change default subtitles to 0 on WEBDL tv show

Post by hugbug » 21 Oct 2015, 07:20

  1. add script-signature for NZBGet to detect this script and show it in settings;
  2. change current directory to destination directory (NZBPP_DIRECTORY);
  3. return exit code 93 at the end of the script.
For more info see Extension scripts and Post processing scripts.

Your script will look like this (not tested):

Code: Select all

#!/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

emko
Posts: 2
Joined: 20 Oct 2015, 20:39

Re: [Request] change default subtitles to 0 on WEBDL tv show

Post by emko » 21 Oct 2015, 08:23

thank you so much

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests