add forced to list of preserved track comments

This commit is contained in:
2022-12-28 11:52:12 +01:00
parent 2e029290f9
commit 9278aea593
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ for TRACK in $TRACKS; do
[[ $TRACK_NAME == "null" ]] && echo "has no title, skipping." && continue
echo -n "currently set to $TRACK_NAME... "
shopt -s nocasematch
[[ $TRACK_NAME =~ full|\stitles|comment|director|sdh|sign ]] && echo "includes whitelisted word, not deleting." && continue
[[ $TRACK_NAME =~ full|\stitles|comment|director|sdh|sign|forced ]] && echo "includes whitelisted word, not deleting." && continue
echo -n "deleting... "
# mkvmerge --identify indexes tracks from 0, while mkvpropedit indexes from 1
mkvpropedit "$FILE" --edit track:"$((TRACK+1))" --delete name &>/dev/null