ExifTool Forum

ExifTool => Newbies => Topic started by: tlm2408 on December 30, 2017, 03:01:03 PM

Title: Can I add quotes around the year tag?
Post by: tlm2408 on December 30, 2017, 03:01:03 PM
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.
Title: Re: Can I add quotes around the year tag?
Post by: Phil Harvey on December 30, 2017, 03:37:18 PM
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
Title: Re: Can I add quotes around the year tag?
Post by: tlm2408 on December 30, 2017, 05:04:44 PM
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