Code: Select all
"Write XYtag to music file's metadata"
foreach($item, <selitems |>, "|") {
$term = replace(property("#Tags",$item), ',' , ';');
$command = "set genre '" . $term . "'";
Run """C:\Kid3\kid3-cli.exe"" -c ""$command"" ""$item""";
}
"Write music file's metadata to XYtag"
foreach($item, <selitems |>, "|") {
$Tag = replace(runret("C:\MediaInfo\MediaInfo.exe ""--Inform=General;%Genre%"" ""$item"""), '/', ',');
tag $Tag,$item,1,1;
}
Kid3 cli: https://kid3.sourceforge.io/
I wonder whether there's more effective ways to sync between XYtag and music file's metadata?