From 50d9961d1917d84f3d51adbfbb77345de91c54ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Thu, 28 Jul 2022 13:37:18 +0200 Subject: [PATCH] Add more whitelisted words --- delete_video_track_titles.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/delete_video_track_titles.sh b/delete_video_track_titles.sh index 49158c2..d282f21 100755 --- a/delete_video_track_titles.sh +++ b/delete_video_track_titles.sh @@ -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 \ No newline at end of file +mkvpropedit "$FILE" --edit info --delete title