1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-26 21:18:36 -06:00

new: Support mkv files

This commit is contained in:
Sayantan Santra 2023-05-22 20:45:18 -05:00
parent e9e3134c7e
commit ef7c3d8ced
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F

View file

@ -5,7 +5,7 @@
# It makes the subs discoverable by virtually any video player. # It makes the subs discoverable by virtually any video player.
# Optionally takes a language arguments e.g. en to rename to .en.srt # 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 if [ -f "$f" ]; then
h=$(basename "$f" .mp4) h=$(basename "$f" .mp4)
echo "Renaming the subtitle (if any) accompanying $h.mp4..." echo "Renaming the subtitle (if any) accompanying $h.mp4..."