Skip to content

Creating script to copy tag (or first value) to another tag #13

Closed Answered by CyberSinh
Enn83 asked this question in Q&A
Discussion options

You must be logged in to vote

By convention, tag name should be in uppercase.

So, replace:

file.SetTag("Composer", file.GetFirstValue("Album"));

by:

file.SetTag("COMPOSER", file.GetFirstValue("ALBUM"));

or you can use the TagName static class for known tags:

file.SetTag("COMPOSER", file.GetFirstValue(TagName.Album));

But if you're simply copying the value of one tag to another, there's no need to use a script.
Instead, use the manual tag editing tool, and enter the identifier |ARTIST| (identifier is case insensitive) as the target value for the COMPOSER tag.

Further information: https://www.luminescence-software.org/en/metatogger/documentation#how-to-add-or-modify-tags

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Enn83
Comment options

Answer selected by CyberSinh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants