diff -r 3862c260d116 -r 3238d1625df9 src/js/serializers/ldt.js --- a/src/js/serializers/ldt.js Wed Jun 06 19:36:55 2012 +0200 +++ b/src/js/serializers/ldt.js Thu Jun 07 18:52:46 2012 +0200 @@ -99,8 +99,8 @@ if (typeof _data.meta["dc:source"] !== "undefined" && typeof _data.meta["dc:source"].content !== "undefined") { _res.source = JSON.parse(_data.meta["dc:source"].content); } - if (typeof _data.audio !== "undefined" && _data.audio.href) { - _res.audio = _data.audio; + if (typeof _data.content.audio !== "undefined" && _data.content.audio.href) { + _res.audio = _data.content.audio; } return _res; }, @@ -111,7 +111,8 @@ end : _data.end.milliseconds, content : { title : _data.title, - description : _data.description + description : _data.description, + audio : _data.audio }, media : _source.unNamespace(_data.media.id), meta : { @@ -124,8 +125,7 @@ return { "id-ref" : _source.unNamespace(_id) } - }), - audio : _data.audio + }) } } },