# Album media type (extension) and genre

**URL:** https://community.mp3tag.de/t/album-media-type-extension-and-genre/69350
**Category:** Support
**Created:** [August 8, 2025, 12:48pm UTC](https://community.mp3tag.de/t/album-media-type-extension-and-genre/69350 "2025-08-08T12:48:50Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![pdv9](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/e274bd/32.png) [@pdv9](https://community.mp3tag.de/u/pdv9)
#### Post date: [August 8, 2025, 12:48pm UTC](https://community.mp3tag.de/t/album-media-type-extension-and-genre/69350/1 "2025-08-08T12:48:50Z")

</div>

I use Actions to rename my album folders and then also the songs in them, which ensures all files in the original folder stay within the renamed folder.

My requests / questions are that I would like to include information from the audio files in my album folder name:

1. the extension of the audio files, such as FLAC, MP3, OGG, AAC, ISO (SACD etc. rips) etc., so I can easily see if this is a FLAC or MP3 album, for example; and
2. the same for the genre, i.e. be able to add to the album folder name the genre such as Rock, Pop etc.  
I understand that the audio files may have different genres in them, and there may be both say .FLAC and .MP3 files present in the folder, so maybe just taking the file extension and the genre from the first audio file in the folder would be ok.  
I am quite certain this can’t be achieved with current functionality, so this is a request for a new field that can be used through a token in folder renaming (when using Actions to rename) - hope this is the right place to put requests.

---

<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: [August 8, 2025, 12:52pm UTC](https://community.mp3tag.de/t/album-media-type-extension-and-genre/69350/2 "2025-08-08T12:52:32Z")

</div>

The extension can be addressed with %\_extension% and the GENRE with %genre% - so I don't see

> [@pdv9](#):
>
> a request for a new field

To use the data from the first file, try a filter:  
`%track% IS 1`

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [August 8, 2025, 12:54pm UTC](https://community.mp3tag.de/t/album-media-type-extension-and-genre/69350/3 "2025-08-08T12:54:44Z")

</div>

You could have a look here:

> [@Dealing With Multiple File Formats](https://community.mp3tag.de/t/dealing-with-multiple-file-formats/57800):
>
> Hey everyone! I probably have an uncommon problem, but I will throw it out there to see if anyone has an easy solution! I am looking for a way to deal with duplicate songs in different file formats. My current library is formatted as follows: ALBUMARTIST / YEAR - ALBUM (FILEFORMAT) / DISCNUMBER-TRACK - TITLE I like using the file format after the album because it is easy to see what upgrades I can make to my library easily and it has kept the different file formats separate without having dupl…

and here:

> [@Multi disc album folder renaming action-different levels](https://community.mp3tag.de/t/multi-disc-album-folder-renaming-action-different-levels/51834):
>
> I have created an action for renaming folders based on extension. With this code, if extension is flac it will add bitspersample and sample rate to the folder name otherwise it add the extension like MP3 or ALAC. %ARTIST%'-'%YEAR%'-'%ALBUM% $if($eql(%\_extension%,'FLAC'),"("$upper(%\_extension%)")" '['%\_bitspersample%'-'$cutRight(%\_samplerate%,3)']','('$upper(%\_extension%)')') I have found that this code become not so useful for multi disc albums because of the different folder structures. I a…

and here:

> [@$if inserts a space if the metadata Field is blank while renaming folders based on song data. How to avoid or remove during renaming?](https://community.mp3tag.de/t/if-inserts-a-space-if-the-metadata-field-is-blank-while-renaming-folders-based-on-song-data-how-to-avoid-or-remove-during-renaming/54097):
>
> I have an action that automatically renames the parent folder based on the metadata of the songs, using the $if function depending on if certain fields are empty. I tried using $trim but it didn't seem to work. $if(%catalog%,'['%catalog%']',) %album% (%year%) $if(%event%,'['%event%']',) (%\_EXTENSION%) CATALOG and EVENT are custom metadata fields for the songs. It results in a neat folder name such as: [ACCD2] Acclaims Raving X-Mas (1997) (flac) However, my problem is that the second half of…

to get some ideas how to do that.

---

<div class="post-metadata">

### Author: ![pdv9](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/e274bd/32.png) [@pdv9](https://community.mp3tag.de/u/pdv9)
#### Post date: [August 8, 2025, 10:24pm UTC](https://community.mp3tag.de/t/album-media-type-extension-and-genre/69350/4 "2025-08-08T22:24:47Z")

</div>

Great, thanks for your time to answer. I will have a look, and apologies if I overlooked an obvious answer! I think my reasoning was that for the album folder rename part of Action the rename (e.g. %artist% - %year% - %album% {%\_extension%}, because it relates to the overall album info, MP3Tag would not which of the audio files in the folder should be the source of the \_extension info. I have two rename Actions, one for the folder, and one for the audio files (e.g. %track% - %title%, to ensure that other files such as the cover.jpg move to the new folder when renamed - i.e. I don’t use the Tag → Filename approach, as then the non-audio files don’t get moved to the new folder. Your suggestion sounds good, I will go and give it a test, thanks again!

---

<div class="post-metadata">

### Author: ![pdv9](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/e274bd/32.png) [@pdv9](https://community.mp3tag.de/u/pdv9)
#### Post date: [August 8, 2025, 10:26pm UTC](https://community.mp3tag.de/t/album-media-type-extension-and-genre/69350/5 "2025-08-08T22:26:07Z")

</div>

Also thanks for your answer! - I will have a look into those links you provided.

---

<div class="post-metadata">

### Author: ![pdv9](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/e274bd/32.png) [@pdv9](https://community.mp3tag.de/u/pdv9)
#### Post date: [August 9, 2025, 11:10pm UTC](https://community.mp3tag.de/t/album-media-type-extension-and-genre/69350/6 "2025-08-09T23:10:00Z")

</div>

Thanks, just using the fields as is worked fine. Encountered some issues after but will be due to errors in my formula, if I get stuck I will ask for help again (it renamed only the first time, after making some changes to the formula renaming had no effect - but logically that will be because there is a problem in my formula).

---

<div class="post-metadata">

### Author: ![pdv9](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/e274bd/32.png) [@pdv9](https://community.mp3tag.de/u/pdv9)
#### Post date: [August 9, 2025, 11:12pm UTC](https://community.mp3tag.de/t/album-media-type-extension-and-genre/69350/7 "2025-08-09T23:12:36Z")

</div>

I marked ohrenkino’s reply as the solution but your answer also basically provided the same solution, with some really useful additional info, thanks!

---

<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: [September 8, 2025, 11:13pm UTC](https://community.mp3tag.de/t/album-media-type-extension-and-genre/69350/8 "2025-09-08T23:13:08Z")

</div>

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