# Action to add a tittle part to artist

**URL:** <https://community.mp3tag.de/t/action-to-add-a-tittle-part-to-artist/15220>\
**Category:** Support\
**Created:** [November 19, 2013, 2:22am UTC](https://community.mp3tag.de/t/action-to-add-a-tittle-part-to-artist/15220 "2013-11-19T02:22:29Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![morsmodre](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/ecc23a/32.png) [@morsmodre](https://community.mp3tag.de/u/morsmodre)\
**Post date:** [November 19, 2013, 2:22am UTC](https://community.mp3tag.de/t/action-to-add-a-tittle-part-to-artist/15220/1 "2013-11-19T02:22:29Z")

</div>

Hi.

I have mp3 that have two artists but only one of them appears in the artist tag. The other ius in the title in the form title-artist2:

ARTIST: Elvis  
TITLE: I have none-Freedy

What I wanted was to change the artist tag to have both and remove the second from the title tag:

ARTIST: Elvis and Freedy  
TITLE: I have none

I suppose this can be done using the actions scripts and regex, but I can't really do it. The regex I'm using is (._)-(._) and I'm replacing with: %artist% and $2

Am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [November 19, 2013, 5:44am UTC](https://community.mp3tag.de/t/action-to-add-a-tittle-part-to-artist/15220/2 "2013-11-19T05:44:22Z")

</div>

> [@mors](#):
>
> Am I doing something wrong?

Replacing works only within one field but not across.

> [@](#):
>
> ...  
> ARTIST: Elvis  
> TITLE: I have none-Freedy  
> ...  
> ARTIST: Elvis and Freedy  
> TITLE: I have none

I would create an action group with the following steps:

1. Guess value for TITLE  
Pattern: %title%-%temp\_artist%

2. Format value for ARTIST  
Formatting string: %artist% and %temp\_artist%

3. Delete field %temp\_artist%

Please watch out that some title will most certainly have hypens without an artist name following.

---

<div class="post-metadata">

**Author:** ![morsmodre](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/ecc23a/32.png) [@morsmodre](https://community.mp3tag.de/u/morsmodre)\
**Post date:** [November 20, 2013, 3:25am UTC](https://community.mp3tag.de/t/action-to-add-a-tittle-part-to-artist/15220/3 "2013-11-20T03:25:39Z")

</div>

Thanks a lot: works wonders.

I just have a question: something the pattern tittle pattern doesn't have nothing.

With this action group, when the pattern %title%-%temp\_artist% is not found the %temp\_artist% is assumed to be "". This makes the artist be "artist and ".

How do I fix this now?

thanks!

> [@ohrenkino](#):
>
> Replacing works only within one field but not across.
> 
> I would create an action group with the following steps:
> 
> 1. Guess value for TITLE  
> Pattern: %title%-%temp\_artist%
> 
> 2. Format value for ARTIST  
> Formatting string: %artist% and %temp\_artist%
> 
> 3. Delete field %temp\_artist%
> 
> Please watch out that some title will most certainly have hypens without an artist name following.

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [November 20, 2013, 4:45am UTC](https://community.mp3tag.de/t/action-to-add-a-tittle-part-to-artist/15220/4 "2013-11-20T04:45:57Z")

</div>

> [@mors](#):
>
> ... I just have a question: something the pattern tittle pattern doesn't have nothing.  
> With this action group, when the pattern %title%-%temp\_artist% is not found the %temp\_artist% is assumed to be "". This makes the artist be "artist and ".How do I fix this now? thanks!

**%ARTIST%[' and '%temp\_artist%]**

DD.20131120.0645.CET

---

<div class="post-metadata">

**Author:** ![morsmodre](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/ecc23a/32.png) [@morsmodre](https://community.mp3tag.de/u/morsmodre)\
**Post date:** [February 2, 2014, 1:24am UTC](https://community.mp3tag.de/t/action-to-add-a-tittle-part-to-artist/15220/5 "2014-02-02T01:24:33Z")

</div>

I thought about entering another topic but the question is quite similar so I'll place it here.

I have file like:  
TITLE: The Music Title - The Artist-1997  
YEAR: 2014

The actual year is 1997 and that's what I wanted to put in the YEAR tag.

I tried to use the same approach as above but the guess value always returns "".

How can I do this. Also, is there a in dept manual about the actions besides the forums?

txtx!

---

<div class="post-metadata">

**Author:** ![chrishirst](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/4af34b/32.png) [@chrishirst](https://community.mp3tag.de/u/chrishirst)\
**Post date:** [February 2, 2014, 9:11am UTC](https://community.mp3tag.de/t/action-to-add-a-tittle-part-to-artist/15220/6 "2014-02-02T09:11:45Z")

</div>

> [@](#):
>
> Also, is there a in dept manual about the actions besides the forums?

Like all Windows applications you press F1 for a context sensitive help manual or you can start reading from Help -\> Contents.

> [@](#):
>
> I have file like:  
> TITLE: The Music Title - The Artist-1997  
> YEAR: 2014

the 'guessing' pattern is:

TITLE: %title% - %artist% - %year% YEAR:%dummy%

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [February 2, 2014, 1:35pm UTC](https://community.mp3tag.de/t/action-to-add-a-tittle-part-to-artist/15220/7 "2014-02-02T13:35:12Z")

</div>

> [@Chris Hirst](#):
>
> Like all Windows applications you press F1 for a context sensitive help manual or you can start reading from Help -\> Contents.  
> the 'guessing' pattern is:
> 
> TITLE: %title% - %artist% - %year% YEAR:%dummy%

I would say that the guessing pattern could be:  
%dummy% - %dummy%-%year%

If the example is correct then there is no blank-hyphen-blank in front of the year.  
Also, the guessing action overwrites the values in existing fields.

---

<div class="post-metadata">

**Author:** ![morsmodre](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/ecc23a/32.png) [@morsmodre](https://community.mp3tag.de/u/morsmodre)\
**Post date:** [February 2, 2014, 5:12pm UTC](https://community.mp3tag.de/t/action-to-add-a-tittle-part-to-artist/15220/8 "2014-02-02T17:12:31Z")

</div>

Yes, there is no blank-hyphen-blank _before_ (not after 🙂) year.

But it still doesn't work.

I'm defining a guess values action as  
Source format: TITLE  
Guessing pattern: %d1% - %d2%-%year%

but nothing happens. I don't quite understand these fields either. Care to shed some light onto them?

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [February 2, 2014, 5:51pm UTC](https://community.mp3tag.de/t/action-to-add-a-tittle-part-to-artist/15220/9 "2014-02-02T17:51:19Z")

</div>

The metadata of a whole tag is structured into "fields" so that it is easier to judge, what kind of information can be expected in one e.g. ARTIST should hold the name of the artist performing a TITLE.  
In MP3tag it is possible to tell MP3tag which field should be filled by using a certain syntax to address the fields - a fairly complete list can be found in [https://docs.mp3tag.de/customization/file-list](https://docs.mp3tag.de/customization/file-list).  
In addition there are some pseudo-fields that can be addressed but their contents cannot be modified (like bitrate or length) or it is not really part of the tag (like \_filename).  
The placeholders for fields have the same name as a field encapsulated with %.  
And there is %dummy% which tells MP3tag to ignore that part.

Coming back to the "not work": Probably I got it wrong: I just issued a possible way to get the year copied into the YEAR field - it still stays in the TITLE field as long as the "guessing" does not invoke a re-write of the TITLE field.  
e.g. the guessing pattern  
%title% - %artist%-%year%  
would copy the part for artist and year into the corresponding fields and then overwrite TITLE with the bit that is described by %title% - this way it looks as though some of the contents has been moved ... it has been copied and then been deleted... (which is a move in a way).

So coming back to my idea: my suggestion does not rewrite TITLE so the contents stays the same - but the year should have been modified.

To get rid of the year in the title, you can create an action group that first copies the year to the field YEAR (with the guessing action) and then do a "replace with regular description" for TITLE  
Search string: -\d+$  
Replace string:  
(leave empty).  
This should delete everything after the hyphen

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [February 18, 2014, 7:10pm UTC](https://community.mp3tag.de/t/action-to-add-a-tittle-part-to-artist/15220/10 "2014-02-18T19:10:08Z")

</div>

> [@mors](#):
>
> ... I have file like:  
> TITLE: The Music Title - The Artist-1997  
> YEAR: 2014  
> The actual year is 1997 and that's what I wanted to put in the YEAR tag. ...

_Actiontype 7:_ **Import tag fields (guess values)** 

_Source format \_\_:_ **%TITLE%**  
_Guessing pattern:_ **%TITLE% - %ARTIST%-%YEAR%**

 

From:  
TITLE=The Music Title - The Artist-1997  
To:  
TITLE=The Music Title  
ARTIST=The Artist  
YEAR=1997

 _Actiontype 7:_ **Import tag fields (guess values)** 

_Source format \_\_:_ **%TITLE%**  
_Guessing pattern:_ **%DUMMY% - %DUMMY%-%YEAR%**

 

From:  
TITLE=The Music Title - The Artist-1997  
To:  
TITLE=The Music Title - The Artist-1997  
YEAR=1997

 

DD.20140218.2118.CET

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [February 9, 2026, 12:24pm UTC](https://community.mp3tag.de/t/action-to-add-a-tittle-part-to-artist/15220/11 "2026-02-09T12:24:46Z")

</div>

Closed on February 9, 2026, 12:24pm UTC


