Add more whitelisted words
This commit is contained in:
parent
d3aef45acc
commit
50d9961d19
|
@ -10,7 +10,7 @@ for TRACK in $TRACKS; do
|
||||||
TRACK_NAME=$(echo "$JSON_OUTPUT" | jq "select(.id == $TRACK).properties.track_name")
|
TRACK_NAME=$(echo "$JSON_OUTPUT" | jq "select(.id == $TRACK).properties.track_name")
|
||||||
echo -n "Track no. ${TRACK} currently set to $TRACK_NAME... "
|
echo -n "Track no. ${TRACK} currently set to $TRACK_NAME... "
|
||||||
shopt -s nocasematch
|
shopt -s nocasematch
|
||||||
[[ $TRACK_NAME =~ full|titles|comment|director ]] && echo "includes whitelisted word, not deleting." && continue
|
[[ $TRACK_NAME =~ full|\stitles|comment|director|sdh|sign ]] && echo "includes whitelisted word, not deleting." && continue
|
||||||
echo "deleting."
|
echo "deleting."
|
||||||
# mkvmerge --identify indexes tracks from 0, while mkvpropedit indexes from 1
|
# mkvmerge --identify indexes tracks from 0, while mkvpropedit indexes from 1
|
||||||
mkvpropedit "$FILE" --edit track:"$((TRACK+1))" --delete name
|
mkvpropedit "$FILE" --edit track:"$((TRACK+1))" --delete name
|
||||||
|
|
Loading…
Reference in New Issue