|
|
@ -46,6 +46,8 @@ def insertMetadata(tree, config): |
|
|
|
logger.error('failed to add Metadata AMS attribute '+str(e)) |
|
|
|
sys.exit(0) |
|
|
|
ET.SubElement(tree, 'AMS', attributes) |
|
|
|
ET.SubElement(tree, 'App_Data', {'App': 'MOD', 'Name': "Metadata_Spec_Version", 'Value': "CableLabsVOD1.1"}) |
|
|
|
ET.SubElement(tree, 'App_Data', {'App': 'MOD', 'Name': "Provider_Content_Tier", 'Value': "VU"}) |
|
|
|
|
|
|
|
|
|
|
|
def createAMSattributes(asset_type, metadata): |
|
|
@ -184,4 +186,4 @@ if __name__ == "__main__" : |
|
|
|
try: |
|
|
|
tree.write(f'{args.output}/adi.xml', encoding='utf-8', xml_declaration=True, pretty_print=True, doctype='<!DOCTYPE ADI SYSTEM "ADI.DTD">') |
|
|
|
except Exception as e: |
|
|
|
print(str(e)) |
|
|
|
print(str(e)) |