]> git.rmz.io Git - dotfiles.git/commitdiff
remove (year)(quality)[lang] when setting the title
authorSamir Benmendil <samir.benmendil@gmail.com>
Wed, 16 Jan 2013 21:27:45 +0000 (22:27 +0100)
committerSamir Benmendil <samir.benmendil@gmail.com>
Wed, 16 Jan 2013 21:27:45 +0000 (22:27 +0100)
bin/mkvsettitle

index f9a8c8d356ea0dcfec88f054ed027faf083b91d4..b74b76ab9f96a9ced707aeb0365a74fa9ded541b 100755 (executable)
@@ -10,5 +10,7 @@ for f in "$dir"/*; do
     esac
     t=$(basename "$f" "$ext")
     t=${t%.*}
+    # remove also (2013){1080p}[en] stuff
+    t=${t% (*)\{*\}*}
     mkvpropedit --set title="$t" "$f" > /dev/null
 done