From 70d51a1d6cca155e779c4f6f1ec289648fef8c28 Mon Sep 17 00:00:00 2001 From: Gabe Farrell Date: Tue, 4 Mar 2025 23:21:06 -0500 Subject: [PATCH] make detect_missing_fonts only count files with .ass subs --- detect_missing_fonts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/detect_missing_fonts.sh b/detect_missing_fonts.sh index 54a8235..5e97865 100755 --- a/detect_missing_fonts.sh +++ b/detect_missing_fonts.sh @@ -3,7 +3,7 @@ # Function to check if the file contains SSA/ASS subtitles contains_ssa_ass() { local file="$1" - if mkvmerge -i "$file" | grep -iqE "subtitles.*\(SSA\|ASS\)"; then + if mkvmerge -i "$file" | grep -iq "SubStationAlpha"; then return 0 # Found SSA/ASS subtitles else return 1 # No SSA/ASS subtitles @@ -13,7 +13,7 @@ contains_ssa_ass() { # Function to check if the file has attachments check_attachments() { local file="$1" - if ! mkvinfo "$file" | grep -q "Attachment"; then + if ! mkvmerge -i "$file" | grep -q "Attachment"; then echo "$file" fi }