Add more whitelisted words
This commit is contained in:
parent
d3aef45acc
commit
50d9961d19
|
@ -10,10 +10,10 @@ for TRACK in $TRACKS; do
|
|||
TRACK_NAME=$(echo "$JSON_OUTPUT" | jq "select(.id == $TRACK).properties.track_name")
|
||||
echo -n "Track no. ${TRACK} currently set to $TRACK_NAME... "
|
||||
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."
|
||||
# mkvmerge --identify indexes tracks from 0, while mkvpropedit indexes from 1
|
||||
mkvpropedit "$FILE" --edit track:"$((TRACK+1))" --delete name
|
||||
done
|
||||
echo "Deleting file title..."
|
||||
mkvpropedit "$FILE" --edit info --delete title
|
||||
mkvpropedit "$FILE" --edit info --delete title
|
||||
|
|
Loading…
Reference in New Issue