Please take a minute to check our Frequently Asked Questions. Use Search to reveal possible related topics.
Also make sure you've read the Forum Guidelines before posting in this forum.
![]() ![]() |
May 4 2012, 17:25
Post
#1
|
|
|
Member Group: Full Members Posts: 12 Joined: 12-January 10 Member No.: 11649 Mp3tag Version: 2.45 |
Hi All,
Apologies if this has been covered, but i couldn't find anything. I've also looked at the FAQ but code is FAR from my strong-point. I'm looking to add ' OST' (that's; _space_OST) to the end of all ARTIST field if not already present. I'd like it to be case sensitive and exact phrase match, too. If anyone can help me out on this, i'd really appreciate it. |
|
|
|
May 4 2012, 17:58
Post
#2
|
|
![]() Member Group: Full Members Posts: 4129 Joined: 26-May 06 From: Wuppertal, Germany, Planet Earth Member No.: 3194 Mp3tag Version: 2.54 |
... Apologies if this has been covered, but i couldn't find anything. I've also looked at the FAQ but code is FAR from my strong-point. I'm looking to add ' OST' (that's; _space_OST) to the end of all ARTIST field if not already present. I'd like it to be case sensitive and exact phrase match, too. If anyone can help me out on this, i'd really appreciate it. 1. Appending something to a tag-field is standard theme of the FAQ area. 2. Appending something in the case of while it does not already exist, this is a matter of checking out, whether some value exists or not. For your example this might be 'very easy'. Look at the rightmost four characters ... $right(%ARTIST%,4). Check the value against the given tag-field content ... $eql($right(%ARTIST%,4),' OST') Make a decision what to do ... $if($eql($right(%ARTIST%,4),' OST'),%ARTIST%,%ARTIST%' OST') DD.20120504.1850.CEST -------------------- * Beyond that, don't ask, when you don't know what to do with the answer. *
♥ home is where the heart is ♥ |
|
|
|
May 5 2012, 12:53
Post
#3
|
|
|
Member Group: Full Members Posts: 12 Joined: 12-January 10 Member No.: 11649 Mp3tag Version: 2.45 |
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 24th May 2013 - 23:09 |