More > JRiver Media Center 22 for Windows

Extract partial information from a tag by template to populate another tag?

<< < (2/2)

Simon Chick:
Thank you again, and apologies, but I am a total novice for this aspect of MC.

So I found an album with the comment in the ideal format, clicked on the headings, immediately saw add expression as the second option in the drop down, named it extract conductor, pasted in the code and .. nothing happened. The new column in the view and the Conductor field were both empty. Then I realised I had left a blank line at the top when I did the pasting. Cleared that, hit OK again et voila.

So after that I guess I use a move command to put the result in the Conductor field then delete the expression column, and do this on a higher level so many are done at the same time.

Many thanks. Clearly a whole new field of learning here.  :o

blgentry:
Expression columns are used as a testing feature.  You put your expression into the column, then select different albums and see the results.  This is to verify that your expression is correct and will work on many, or all of your files.  Once you are satisfied that the expression works correctly, then you actually use it to populate your Conductor field.

To populate the field, it's actually very easy:

Highlight some files you want to populate with conductor.
Open the tagging window (edit > tag).
Go find the conductor field in the tagging window.  You may have to use the pull down "gear" menu to make that field show.
Now, paste in your expression with an equals sign (=) in front of it.  So, like this:


--- Code: ---=regex([Comment],/#cond\.\s(.+)#/,-1,0)[R1]
--- End code ---

That will populate conductor for every file you have selected.  You could do your whole library at once if you wanted to.  I would suggest doing a smaller group first, then verifying your results.  Eventually doing larger groups until you are done.

Good luck.

Brian.

Navigation

[0] Message Index

[*] Previous page

Go to full version