Posted by: icqtoni
« on: September 18, 2019, 18:11:05 »
Hi,
I manage all tags in my collection with version ID3v2.3.
If I adapt a tag using a script, the version of the tag changes to ID3v2.4 (see Appendix).
Is that what you want and / or do I have the ability to do?
Here is my script:
function checkEmpty (value) {
return! value || /^\s*$/.test(value);
}
var files = results.analysis.files;
for (var idx = 0; idx <files.length; ++ idx) {
if (checkEmpty (files [idx] .tags.comment)) {
log ("->" + Math.round (files [idx] .analysis.rating * 100));
files [idx] .tags.comment = Math.round (files [idx] .analysis.rating * 100);
}
}
Kind regards
icqtoni