Add more whitelisted words

This commit is contained in:
Lukáš Kucharczyk 2022-07-28 13:37:18 +02:00
parent d3aef45acc
commit 50d9961d19
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -10,10 +10,10 @@ 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
done done
echo "Deleting file title..." echo "Deleting file title..."
mkvpropedit "$FILE" --edit info --delete title mkvpropedit "$FILE" --edit info --delete title