Skip to content

Instantly share code, notes, and snippets.

@andrewmackrodt
Created June 19, 2022 22:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewmackrodt/4b726528bc14ea5699aa03ea65c480d2 to your computer and use it in GitHub Desktop.
Save andrewmackrodt/4b726528bc14ea5699aa03ea65c480d2 to your computer and use it in GitHub Desktop.
#!/bin/bash
IFS=$'\n\t'
set -euo pipefail
cd "~/Downloads/series"
for f in $(ls -1 *.mkv); do
mkvpropedit "$f" \
--edit track:s1 --set language=eng --set flag-forced=1 --delete flag-default \
--edit track:s2 --set language=eng --set flag-default=1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment