- May 15, 2006
- 62
- 4
- Home Country
-
Germany
Maybe it's to late. Maybe i don't understand the instructions on the Google Code site...
Please can someone help me how to loop though this to set the "language" field in moving pictures:
I tried to loop that to extract
|English|German|Spanish|
as a result from the longlanguage tags to store this in the "language" field of a movie.
This works:
in the "get_details" section of my Ember XML / NFO script. But i'd like to have a clean loop and not such an ugly workaround. Regardless of what i've tried. It didn't work... i know it's me but i don't understand why and where
Pleaseeee..

Please can someone help me how to loop though this to set the "language" field in moving pictures:
Code:
<movie>
.
.
.
<fileinfo>
<streamdetails>
<audio>
<channels>2</channels>
<codec>ac3</codec>
<language>eng</language>
<longlanguage>English</longlanguage>
</audio>
<audio>
<channels>2</channels>
<codec>ac3</codec>
<language>deu</language>
<longlanguage>German</longlanguage>
</audio>
<audio>
<channels>2</channels>
<codec>ac3</codec>
<language>spa</language>
<longlanguage>Spanish</longlanguage>
</audio>
</streamdetails>
</fileinfo>
</movie>
I tried to loop that to extract
|English|German|Spanish|
as a result from the longlanguage tags to store this in the "language" field of a movie.
This works:
Code:
<parse name="language" input="${file}" xpath="//movie/fileinfo/streamdetails/audio" />
<set name="movie.language" value="|${language[0].longlanguage}|${language[1].longlanguage}|${language[2].longlanguage}|${language[3].longlanguage}|${language[4].longlanguage}" />
in the "get_details" section of my Ember XML / NFO script. But i'd like to have a clean loop and not such an ugly workaround. Regardless of what i've tried. It didn't work... i know it's me but i don't understand why and where
Pleaseeee..