From ef7c3d8cedca447f41f78d0d6d9076a6f89f9970 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Mon, 22 May 2023 20:45:18 -0500 Subject: [PATCH] new: Support mkv files --- rename-subs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rename-subs b/rename-subs index ea586ae..109293f 100644 --- a/rename-subs +++ b/rename-subs @@ -5,7 +5,7 @@ # It makes the subs discoverable by virtually any video player. # Optionally takes a language arguments e.g. en to rename to .en.srt -for f in *.mp4; do +for f in *.mp4 *.mkv; do if [ -f "$f" ]; then h=$(basename "$f" .mp4) echo "Renaming the subtitle (if any) accompanying $h.mp4..."