# Nfo's from KODI into tag 🙄

**URL:** https://community.mp3tag.de/t/nfos-from-kodi-into-tag/50933
**Category:** Support
**Created:** [November 27, 2020, 6:07am UTC](https://community.mp3tag.de/t/nfos-from-kodi-into-tag/50933 "2020-11-27T06:07:24Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Boiker](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/3bc359/32.png) [@Boiker](https://community.mp3tag.de/u/Boiker)
#### Post date: [November 27, 2020, 6:07am UTC](https://community.mp3tag.de/t/nfos-from-kodi-into-tag/50933/1 "2020-11-27T06:07:24Z")

</div>

Hi.

Im wondering if its possible to extract genre from KODI nfo-file into tag?

Kodi makes nfo files "artist.nfo" in front of every albums.  
Like this - Artist/albums/artist.nfo.  
Full - Artist/albums/artist-abum/song.mp3

So the artist-nfo is always one directory back from where the MP3 is.

In the nfo-files, there is a lot of information. Like artist info, Moods, names and so on.

But in between those lines, the genre is written like this:  
rock/pop

![mp3 genre](https://community.mp3tag.de/uploads/default/original/2X/d/d6d0c086a3f4dc38d1a1a9078c127b3d59a3c241.jpeg)

So the question is: is it possible to load different albums from different artists into mp3tag at the same time, and make text-to-tag that always go one directory back into one "artist.nfo", look for its this text and place that into the genre-tag for each mp3?

A complicated question i hope you understand. I cant find any solution. And i dont think its possible for Kodi to do that job either. It dont write tags into mp3, only nfos's.

Im very thankful for every reply.  
Kind regards

Boik

---

<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 27, 2020, 7:50am UTC](https://community.mp3tag.de/t/nfos-from-kodi-into-tag/50933/2 "2020-11-27T07:50:06Z")

</div>

See the help on the "Import Text file" action:

> **[Import Text File – Mp3tag Documentation](https://docs.mp3tag.de/actions/import-text/)**
>
> Documentation on the Import Text File action type that can be performed as Quick Action or as reusable workflow from Action Groups. Mp3tag is the universal Tag Editor.

As you can specify a file, it should be possible to address one, perhaps with an absolute path.  
Then load the whole text file into a user-defined field e.g. %codi\_info%.  
Then use an action of the type "Format value" for GENRE with  
Format string: `$regexp(%codi_info%,'.*<genre>(.*)</genre>.*',$1)`  
After that you may delete the field CODI\_INFO

---

<div class="post-metadata">

### Author: ![nylamb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/ecd19e/32.png) [@nylamb](https://community.mp3tag.de/u/nylamb)
#### Post date: [April 23, 2022, 10:02am UTC](https://community.mp3tag.de/t/nfos-from-kodi-into-tag/50933/3 "2022-04-23T10:02:55Z")

</div>

Hello,

New to your program (mp3tag) and I know it has been a while since this was replied to ..

I was able to get this to work when there is only 1x in the .nfo file .. but is there a way I could get multiple genres into an array so that I can "merge" or call each on out with the $meta\_sep(x,sep)?

My genre's are in the nfo similar to:  
..  
\< country \> United States \< / country \>  
\< runtime \> 176 \< / runtime \>  
\< mpaa \> PG-13 \< / mpaa \>  
\< genre \> Action \< / genre \>  
\< genre \> Crime \< / genre \>  
\< genre \> Drama \< / genre \>  
\< genre \> Mystery \< / genre \>  
\< genre \> SomeGenre \< / genre \>  
..  
(I had to put the spaces in between the \<, / and \> in order to make them show up in this message.)

Thank you.

---

<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: [April 23, 2022, 11:07am UTC](https://community.mp3tag.de/t/nfos-from-kodi-into-tag/50933/4 "2022-04-23T11:07:06Z")

</div>

A post was split to a new topic: [Import data from text file to user-defined field](https://community.mp3tag.de/t/import-data-from-text-file-to-user-defined-field/57109)

---

<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:28pm UTC](https://community.mp3tag.de/t/nfos-from-kodi-into-tag/50933/5 "2026-02-09T12:28:57Z")

</div>


