def check_dcnc_compliance(self, playlist): """ Digital Cinema Naming Convention compliance (9.3). """ cpl_node = playlist['Info']['CompositionPlaylist'] ct = cpl_node['ContentTitleText'] self.fields, errors = parse_isdcf_string(ct) if errors: self.error('\n'.join(errors))
def cpl_dcnc_parse(cpl_node): """ Extract information from ContentTitle """ fields, errors = parse_isdcf_string(cpl_node.get('ContentTitleText')) cpl_node["NamingConvention"] = fields