As of r46766 [1], the output format used by prop=imageinfo to output
metadata has changed. This change will appear in the MediaWiki 1.14
release (after I backport it, which has yet to be done) as well as go
live on the Wikimedia servers on the next scap.
The old format looked like this:
<metadata version="1" length="110.93466666667">
<streams>
<meta serial="1804289383" group="0" type="Vorbis"
vendor="Xiph.Org libVorbis I 20030909" length="110.93466666667"
size="1449257">
<header vorbis_version="0" audio_channels="2"
audio_sample_rate="48000" bitrate_maximum="0"
bitrate_nominal="112001" bitrate_minimum="0" blocksize_0="8"
blocksize_1="11" framing_flag="0" />
<comments /dev/dsp="" title="Frédéric Chopin: Walzer Op. 64 No. 1
Des-Dur (Valse minute)" artist="Peter Gerwinski" comment="Licensed
under GNU GPL" />
</meta>
</streams>
</metadata>
Note that the <comments /dev/dsp="" ... /> part is invalid XML. This could
happen because parts of the metadata is used in the attributes,
which caused lots of bugs.
The new format looks like this:
<metadata>
<metadata name="version" value="1" />
<metadata name="length" value="110.93466666667" />
<metadata name="streams">
<value>
<metadata name="1804289383">
<value>
<metadata name="serial" value="1804289383" />
<metadata name="group" value="0" />
...
</value>
</metadata>
</value>
</metadata>
</metadata>
Note the use of name/value pairs, and note how nesting is done.
Roan Kattouw (Catrope)
[1]
http://www.mediawiki.org/wiki/Special:Code/MediaWiki/46766
_______________________________________________
Mediawiki-api-announce mailing list
Mediawiki-api-announce(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce