XYtag from/to music file's metadata
Posted: 19 Jul 2018 11:42
As XYplorer cannot read metadata of some music container (i.e: m4a; ape...). I have to use 3rd party app: MediaInfo and Kid3 to read/write. This simple example sync "genre" between XYtag and music file's metadata info:MediaInfo cli: https://mediaarea.net/en/MediaInfo/Download/Windows
Kid3 cli: https://kid3.sourceforge.io/
I wonder whether there's more effective ways to sync between XYtag and music file's metadata?
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?