# 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:** 1
**Showing post:** 3

<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.

---

_[View the full topic](https://community.mp3tag.de/t/album-media-type-extension-and-genre/69350)._
