# Fill media type based on file type

**URL:** <https://community.mp3tag.de/t/fill-media-type-based-on-file-type/50108>\
**Category:** Support\
**Created:** [September 3, 2020, 9:09pm UTC](https://community.mp3tag.de/t/fill-media-type-based-on-file-type/50108 "2020-09-03T21:09:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [September 4, 2020, 5:35am UTC](https://community.mp3tag.de/t/fill-media-type-based-on-file-type/50108/2 "2020-09-04T05:35:11Z")

</div>

Did you have a look at this thread:

> [@Permanently change 'MediaType' for iTunes](https://community.mp3tag.de/t/permanently-change-mediatype-for-itunes/13895):
>
> Hi, How do I permanently change 'MediaType' for iTunes? e.g. I want change some MP3 files (not MP4) mediatype to 'audiobook' instead of 'music' in iTuens, but I want these property to stay with the files, and I don't need to reDo them next time on other itunes from a different computer. Note: MP3 files are stored on a network drive and are shared.

It looks as though there are many more types for mediatype:  
Movie, Normal, Audiobook, Music Video, Short Film, TV Show, Ringtone

And: these categories are only valid for MP4 files anyway (which in a way has been indicated by you as you want to delete the field from mp3s)  
You could create an action of the type "Format value" for MEDIATYPE  
Format string: `$ifgreater($strstr(%_tag%,MP4),0,Music Video,)`

---

_[View the full topic](https://community.mp3tag.de/t/fill-media-type-based-on-file-type/50108)._
