Skip to content

Commit

Permalink
Fixing dummy encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoltan Kozma committed Aug 19, 2016
1 parent 3cc1459 commit 7a138b1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ebu_tt_live/scripts/ebu_dummy_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from ebu_tt_live import bindings
from ebu_tt_live.bindings import _ebuttm as metadata
from ebu_tt_live.bindings import _ebuttdt as datatypes
from ebu_tt_live.documents.ebutt3 import EBUTT3Document
from pyxb import BIND
from datetime import timedelta

Expand Down Expand Up @@ -50,10 +51,12 @@ def main():
)
)

tt.validateBinding()
document = EBUTT3Document.create_from_raw_binding(tt)

document.validate()

print(
tt.toxml()
document.get_xml()
)

log.info('XML output printed')

0 comments on commit 7a138b1

Please sign in to comment.