You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently if you generate the mediapackage episode.xml from opencast with galicaster and it has multiple elements with the same name, only one will be used:
so i've quickly hacked this to work on our current 1.3.x install, but this isn't pull request worthy.
Instead i'd suggest that the metadata handling is re written to be a bit more flexable, it should 1:1 represent the mediapackage xml sent to it from opencast
The text was updated successfully, but these errors were encountered:
I brought this up at the Opencast conference, and have requested that the XML handling be rewritten. I've created as separate issue that discusses the wider issues.
currently if you generate the mediapackage episode.xml from opencast with galicaster and it has multiple elements with the same name, only one will be used:
example episode.xml from opencast:
galicaster when processing the xml will only write out one 'audience' element in the above case.
i've traced the issue to:
line 1438
marshalDublincore
https://github.com/teltek/Galicaster/blob/2.0.x/galicaster/mediapackage/mediapackage.pythis method processes the xml DOM and puts all the metadata into a dict by 'name'
self.metadata_episode[name]
. so if the 'name' is the same then it gets overwritten.also
line 59
_checknget
https://github.com/teltek/Galicaster/blob/2.0.x/galicaster/mediapackage/utils.pythis along with
_checkget
look up the element by name but always use[0]
. if multiple elements with assigned to the named tag then you'd need to look beyond the zeroth element:_checkget(archive.getElementsByTagName(name)[???])
so i've quickly hacked this to work on our current 1.3.x install, but this isn't pull request worthy.
Instead i'd suggest that the metadata handling is re written to be a bit more flexable, it should 1:1 represent the mediapackage xml sent to it from opencast
The text was updated successfully, but these errors were encountered: