I try to get some simple *.nfo files with the Export function. Everything works well until I have multiple tag fields divided by Comma like %actors% %artists% or %Genre%.
Heres how it should look like (created by metaX)
<?xml version="1.0" encoding="utf-16"?>
MetaX for Windows*
Top Gun*
Top Gun*
Top Gun*
1986*
*
*
110 min.*
*
Tony Scott*
*
<name>Tom Cruise</name>*
*
*
<name>Val Kilmer</name>*
*
*
<name>Kelly McGillis</name>*
*
*
<name>Meg Ryan</name>*
*
*
<name>Anthony Edwards</name>*
*
*
<name>Michael Iroside</name>*
*
seems the scrip here counts all Commas in the field actor(s) and makes for each Name a new Entree.
So far the export result of my script looks like this:
Top Gun*
1986*
Krieg;Abenteuer;Love Story*
*
Tony Scott*
Paramount*
Tom Cruise,Val Kilmer,Kelly McGillis,Meg Ryan,Anthony Edwards,Michael Iroside*
I think I must use the $Loop function here for actors but can find any samples how to set it up right that it counts all commas and puts out 1 entree for each comma.
Tried also someting with " $meta_sep" but also no success
You could try an expression like <actor>$replace('Tom Cruies,Kelly McGillis,Meg Ryan',',',</actor><actor>)</actor>
for the line where you write the actor.
Instead of the string constant 'Tom Cruies,Kelly McGillis,Meg Ryan' it should be possible to use $meta_sep(actors,',')
Ok, I tried on my Zidoo: No sucess to retrieve the Actors. I put them in lines like MetaX does. Added the name opener for first actor and name closer for last actor by hand and than it worked by Zidoo !!
So in the script I have handle the opener closer for name tag for the first and last Actor in the tag
2nd I need to seperate them in lines like on the picture by the script....
for "Dateiname der Exportdatei" and "Eine Datei pro Verzeichnis" checked the exported nfo's go all in the Parent Directory and not in the folders where the source media file is.
If I do a search and collect all media files I need and do an nfo export they land all in a parent directory together and it takes ages to find the right folders for the nfo.
No Problem with just 1 file, that lands correct in the source folder.
If that information does not distinguish enough then you have to add further data like $filename(%_directory%\%album%.nfo,UTF-8)
(Again: "like" - it still means that you have to look whether it suits your needs and adapt it accordingly.)