Yes but I do not have the impression that we can only use $ {hdrFormat} because according to the films we do not have the same 'value'
Looked for example the star wars which is in HDR10 +
https://paste.kodi.tv/igozinomek, there is two "value" with hdr
<HDR_Format>SMPTE ST 2094 App 4</HDR_Format>
<HDR_Format_Version>1</HDR_Format_Version>
In addition, kodi skin which uses the HDR, HDR10 and HDR10+ tags requires a very precise file naming, in my case with aeon mq8, the file must be '-hdr' or '.hdr' to display the HDR tag And '-10bit' or '.10bit' to display the 10Bits tag.
Use a condition of presence of any HDR 'value' given by mediainfo which certifies that we are in HDR then added the 'value' ${movie.mediaInfoVideoBitDepth} followed by bit ...
this seems to be the right way ..
Then I come back to the fact that a good number of films are encoded in 10bits but not necessarily in HDR because it uses an encoding in BT709 (standard for HDTV) .. and therefore after passage in the rename function I find myself with a lot of Movie marked '-sdr-10bit' whereas the encoders of these files marked them at the start '4K.hdr.10bit' I am a little lost .. should we have marked HDR a movie encoded BT709 with 10bit resolution Color ??
Anyway, we are moving forward ..
Have a nice day..