}
-/** @return TextContents from node or <Caption> nodes under node (according to version).
+/** @return TextContents from node or <Text> nodes under node (according to version).
* The list could be empty if no TextContents are found.
*/
list<shared_ptr<TextContent> >
return c;
}
- if (!node->optional_node_child("Caption")) {
+ if (!node->optional_node_child("Text")) {
return list<shared_ptr<TextContent> >();
}
list<shared_ptr<TextContent> > c;
- BOOST_FOREACH (cxml::ConstNodePtr i, node->node_children("Caption")) {
+ BOOST_FOREACH (cxml::ConstNodePtr i, node->node_children("Text")) {
c.push_back (shared_ptr<TextContent> (new TextContent (parent, i, version)));
}
return c;
return TEXT_UNKNOWN;
} else if (s == "open-subtitle") {
return TEXT_OPEN_SUBTITLE;
- } else if (s == "closed") {
+ } else if (s == "closed-caption") {
return TEXT_CLOSED_CAPTION;
} else {
throw MetadataError (String::compose ("Unknown text type %1", s));