Nfo's from KODI into tag 🙄

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

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

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


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