Bug in list replace with exiftool below first row
#1 : 13/07-25 22:52 UndefinedSpecies
Posts: 4
|
TLDR: Exiftool tag doesn't work in anything but the first row of "list replace".
I have a bunch of MKVs where the following scripts do what it shows below: (All replaces set to (Occurrences: All, Case:unticked, Reg:Unticked, Apply: Name, {if} not used)) NEW NAME: "[AChannels ACodec]" REPLACE: "AChannels" "<ExifTool:AudioChannels>Ch" -> [2Ch ACodec].mkv REPLACE: "ACodec" "<ExifTool:AudioCodecID>" -> "[2Ch A_FLAC].mkv" (This is good.) NEW NAME: "[AChannels ACodec]" LIST REPLACE ROW1: "ACodec" "<ExifTool:AudioCodecID>" ROW2: "AChannels" "<ExifTool:AudioChannels>Ch" -> "[Ch A_FLAC].mkv" (This is bad.) NEW NAME: "[AChannels ACodec]" LIST REPLACE ROW1: "AChannels" "<ExifTool:AudioChannels>Ch" ROW2: "ACodec" "<ExifTool:AudioCodecID>" -> "[2Ch ].mkv" (This is bad.) NEW NAME: "[AChannels ACodec]" LIST REPLACE ROW1: "AChannels" "Test" ROW2: "ACodec" "<ExifTool:AudioCodecID>" -> "[Test ].mkv" (This is bad.) NEW NAME: "[AChannels ACodec]" LIST REPLACE ROW1: "AChannels" "Test" ROW2: "Test" "Sunny" ROW3: "ACodec" "<ExifTool:AudioCodecID>" -> "[Sunny ].mkv" (This is bad.) |
#2 : 14/07-25 07:26 Kim Jensen
Administrator
Posts: 1003 |
Reply to #1:
You are right. That is a bug. I will fix it for version 4.14. Until then, try writing ExifTool in lowercase, like this: <exiftool:AudioChannels> Externally all tags are case insensitive, but internally they are all lowercase. There is a bug where only the tags of the first replace pair is converted to lowercase. FYI, version 4.14 will also have better native support for reading audio and video codec from .mkv files, without the need for ExifTool. |