Can I add quotes around the year tag?

Started by tlm2408, December 30, 2017, 03:01:03 PM

Previous topic - Next topic

tlm2408

Is it possible to add double quotes around the year tag? I've been looking for some time now and couldn't find any examples. For example I'm trying to get "1997" instead of 1997.

I'm running exiftool on windows with this batch file:
exiftool.exe -api filter="s/ \(approx\)//" -AudioBitrate -FileName
-Directory -Year -Artist -Title -Duration -j -r -ext mp3 -ext  flac
-progress "C:\Audio" >>"MusicSearch temp.js"


Also is it possible force it too add empty vaules if the year isn't present? This already happens for mp3 files, but not for flac files.

Thank you for any help.

Phil Harvey

Why do you want quotes around a json number?  Sorry, there is currently no option to do that.

You can add -f -api MissingTagValue^= to extract missing missing values as an empty string.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

tlm2408

Hi Phil,

The script I have to search for songs only works if the value is in quotes. I can search using the artist tag and the title tag, but searching by year doesn't work because of the missing quotes. I'll have to look for another solution.

Thank you