Page 1 of 1

Get current title

Posted: Fri Sep 25, 2015 8:22 pm
by ldoodle
Hey,

I'm writing a batch file that loops through a given directory, updating any MKV files title tag to match the file name, minus the extension.

I'm using mkvpropedit to set the title. I'd like to only update files where the title is not currently the same as the file name, so I need to get the current title and compare it.

How/can I do that? Shame mkvpropedit doesn't have a 'get' option.

Thanks

Re: Get current title

Posted: Fri Sep 25, 2015 10:31 pm
by Woodstock
mkvinfo from the mkvtoolnix programs?

Re: Get current title

Posted: Sun Sep 27, 2015 5:40 pm
by ldoodle
Thanks, sorted it.

Was a bit of a faff as there's no argument for mkvinfo.exe to get just the required tag, in my case the title. Had to return the whole lot then extract the line with title in, then format it to get rid of the '| + ' prefix!