Moonbase59 / loudgain

ReplayGain 2.0 loudness normalizer based on the EBU R128/ITU BS.1770 standard (-18 LUFS, FLAC, Ogg, MP2, MP3, MP4, M4A, AAC, ALAC, Opus, ASF, WMA, WAV, AIFF, WavPack, APE)
Other
182 stars 23 forks source link

JSON output #39

Open grr opened 3 years ago

grr commented 3 years ago

The --output-new format produces tab-separated values (TSV) with the first field being the filename. But tab and newline characters are valid within filenames, so this can result in invalid TSV output, which makes it unreliable to parse. Can you add an option to produce JSON?

Reference: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_170

Moonbase59 commented 3 years ago

The wonders of Linux—with power comes responsibility. You are correct, of course, but I’ve only once in my life seen someone use newlines or tabs in a filename (and that was for a unit test).

I’ll consider your suggestion for a future release.