# Action help

**URL:** https://community.mp3tag.de/t/action-help/18568
**Category:** Support
**Created:** [December 30, 2016, 5:42pm UTC](https://community.mp3tag.de/t/action-help/18568 "2016-12-30T17:42:55Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Romano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/romano/32/7465_2.png) [@Romano](https://community.mp3tag.de/u/Romano)
#### Post date: [December 30, 2016, 5:42pm UTC](https://community.mp3tag.de/t/action-help/18568/1 "2016-12-30T17:42:55Z")

</div>

Hi there,

i put this in codec field to get the name MP3 but it dind work, help please:

$replace(%\_codec%,'Windows Media Audio','WMA','Free Lossless Audio Codec','FLAC','MPEG 1 Layer III','MP3')

Cover art: how to get more sources?

---

<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: [December 30, 2016, 6:35pm UTC](https://community.mp3tag.de/t/action-help/18568/2 "2016-12-30T18:35:50Z")

</div>

> [@Romano](#):
>
> ...  
> $replace(%\_codec%,'Windows Media Audio','WMA',...

I think it has to be the other way round:  
$replace(%\_codec%,'WMA','Windows Media Audio',...

---

<div class="post-metadata">

### Author: ![Romano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/romano/32/7465_2.png) [@Romano](https://community.mp3tag.de/u/Romano)
#### Post date: [December 30, 2016, 6:54pm UTC](https://community.mp3tag.de/t/action-help/18568/3 "2016-12-30T18:54:40Z")

</div>

> [@ohrenkino](#):
>
> I think it has to be the other way round:  
> $replace(%\_codec%,'WMA','Windows Media Audio',...

i took this code here, i will look for the link, and try your way, thank you

it did not work also:

Something is wrong here

---

<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: [December 30, 2016, 7:12pm UTC](https://community.mp3tag.de/t/action-help/18568/4 "2016-12-30T19:12:19Z")

</div>

> [@Romano](#):
>
> i took this code here, i will look for the link, and try your way, thank you
> 
> it did not work also:
> 
> Something is wrong here

It was not quite clear where you wanted to have this.  
Your original idea was OK, I think:  
$replace(%\_codec%,'Windows Media Audio','WMA','Free Lossless Audio Codec','FLAC','MPEG 1 Layer III','MP3')  
You can only modify the display in the table but you cannot modify the data for the codec in the file.

---

<div class="post-metadata">

### Author: ![ryerman](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ryerman/32/5285_2.png) [@ryerman](https://community.mp3tag.de/u/ryerman)
#### Post date: [December 30, 2016, 7:15pm UTC](https://community.mp3tag.de/t/action-help/18568/5 "2016-12-30T19:15:42Z")

</div>

> [@Romano](#):
>
> Hi there,
> 
> i put this in codec field to get the name MP3 but it dind work, help please:
> 
> $replace(%\_codec%,'Windows Media Audio','WMA','Free Lossless Audio Codec','FLAC','MPEG 1 Layer III','MP3')

The quotes should not be used.  
Use this:  
$replace(%\_codec%,Free Lossless Audio Codec,FLAC,MPEG 1 Layer III,MP3,Windows Media Audio,WMA)

---

<div class="post-metadata">

### Author: ![Romano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/romano/32/7465_2.png) [@Romano](https://community.mp3tag.de/u/Romano)
#### Post date: [December 30, 2016, 9:06pm UTC](https://community.mp3tag.de/t/action-help/18568/6 "2016-12-30T21:06:01Z")

</div>

> [@ryerman](#):
>
> The quotes should not be used.  
> Use this:
> 
> ```
> $replace(%_codec%,Free Lossless Audio Codec,FLAC,MPEG 1 Layer III,MP3,Windows Media Audio,WMA)
> 
> ```

Did not work, for clearing, i want this folder to be:  
The Housemartins - Raise The Flag (1997) [256 MP3]  
and not  
The Housemartins - Raise The Flag (1997) [256 MPEG 1 Layer III]

The Action:  
%artist% - %Album% (%year%) '['%\_bitrate% %\_codec%']'

The value in the codec column:  
i have tried this:  
$replace(%\_codec%,'Windows Media Audio','WMA','Free Lossless Audio Codec','FLAC','MPEG 1 Layer III','MP3')

$replace(%\_codec%,Free Lossless Audio Codec,FLAC,MPEG 1 Layer III,MP3,Windows Media Audio,WMA)

the original post was here in the forums but i cannot find it.

Edit: found it: [Codec](https://community.mp3tag.de/t/17780/1)  
Edit2: it shows well in the column:

---

<div class="post-metadata">

### Author: ![ryerman](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ryerman/32/5285_2.png) [@ryerman](https://community.mp3tag.de/u/ryerman)
#### Post date: [December 31, 2016, 1:25am UTC](https://community.mp3tag.de/t/action-help/18568/7 "2016-12-31T01:25:24Z")

</div>

> [@Romano](#):
>
> Did not work, for clearing, i want this folder to be:  
> The Housemartins - Raise The Flag (1997) [256 MP3]  
> and not  
> The Housemartins - Raise The Flag (1997) [256 MPEG 1 Layer III]
> 
> The Action:  
> %artist% - %Album% (%year%) '['%\_bitrate% %\_codec%']'
> 
> The value in the codec column:  
> i have tried this:  
> $replace(%\_codec%,'Windows Media Audio','WMA','Free Lossless Audio Codec','FLAC','MPEG 1 Layer III','MP3')
> 
> $replace(%\_codec%,Free Lossless Audio Codec,FLAC,MPEG 1 Layer III,MP3,Windows Media Audio,WMA)

Change the Action to:  
%artist% - %Album% (%year%) '['%\_bitrate% $replace(%\_codec%,Free Lossless Audio Codec,FLAC,MPEG 1 Layer III,MP3,Windows Media Audio,WMA)']'

---

<div class="post-metadata">

### Author: ![Romano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/romano/32/7465_2.png) [@Romano](https://community.mp3tag.de/u/Romano)
#### Post date: [December 31, 2016, 9:21am UTC](https://community.mp3tag.de/t/action-help/18568/8 "2016-12-31T09:21:11Z")

</div>

> [@ryerman](#):
>
> Change the Action to:
> 
> ```
> %artist% - %Album% (%year%) '['%_bitrate% $replace(%_codec%,Free Lossless Audio Codec,FLAC,MPEG 1 Layer III,MP3,Windows Media Audio,WMA)']'
> 
> ```

This work thank you. 😃

---

<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: [August 28, 2022, 7:49pm UTC](https://community.mp3tag.de/t/action-help/18568/9 "2022-08-28T19:49:42Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
