You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.1 KiB
36 lines
1.1 KiB
#!/bin/bash
|
|
|
|
# Check if the argument is provided
|
|
if [ -z "$1" ]; then
|
|
echo "Usage: $0 <MKV file>"
|
|
exit 1
|
|
fi
|
|
|
|
# Assign the MKV filename to a variable
|
|
MKV_FILE="$1"
|
|
|
|
# Run the mkvpropedit commands
|
|
mkvpropedit "$MKV_FILE" --attachment-mime-type "application/x-font-otf" --update-attachment "mime-type:application/vnd.ms-opentype"
|
|
if [ $? -gt 1 ]; then
|
|
echo "Error processing mime-type: application/vnd.ms-opentype for $MKV_FILE"
|
|
fi
|
|
|
|
mkvpropedit "$MKV_FILE" --attachment-mime-type "application/x-font-otf" --update-attachment "mime-type:font/otf"
|
|
if [ $? -gt 1 ]; then
|
|
echo "Error processing mime-type: font/otf for $MKV_FILE"
|
|
fi
|
|
|
|
mkvpropedit "$MKV_FILE" --attachment-mime-type "application/x-font-ttf" --update-attachment "mime-type:font/ttf"
|
|
if [ $? -gt 1 ]; then
|
|
echo "Error processing mime-type: font/ttf for $MKV_FILE"
|
|
fi
|
|
|
|
mkvpropedit "$MKV_FILE" --attachment-mime-type "application/x-font-ttf" --update-attachment "mime-type:application/x-truetype-font"
|
|
if [ $? -gt 1 ]; then
|
|
echo "Error processing mime-type: application/x-truetype-font for $MKV_FILE"
|
|
fi
|
|
|
|
|
|
echo "Finished processing $MKV_FILE"
|
|
|