MediaInfoLib icon indicating copy to clipboard operation
MediaInfoLib copied to clipboard

When outputting JSON, return an array of objects…

Open trallen opened this issue 7 months ago • 3 comments

…even if only one file is requested.

This allows for consistent handling of JSON output in cases of arbitrary numbers of input files.

Fixes MediaArea/MediaInfo#1103

trallen avatar May 12 '25 14:05 trallen

I am hesitating about this proposal because it is possible that a lot of people use the JSON file per analyzed file and it will break things for them. I check a bit later what could be done (option for forcing this feature?).

JeromeMartinez avatar May 13 '25 12:05 JeromeMartinez

Thanks @JeromeMartinez. I understand; please let me know what changes you determine are needed!

trallen avatar May 13 '25 13:05 trallen

…even if only one file is requested.

This allows for consistent handling of JSON output in cases of arbitrary numbers of input files.

Fixes MediaArea/MediaInfo#1103

Tested - works as suggested in issue.

alex3kov avatar May 15 '25 04:05 alex3kov