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 }