Fixed a bug when creating the XML file for subtitles

This commit is contained in:
Sergio Costas 2016-04-24 19:04:49 +02:00
parent f6c8588c49
commit 512e2f40c6
3 changed files with 7 additions and 4 deletions

View file

@ -1,4 +1,7 @@
## History of versions ##
* version 4.7.0 (2016-04-24)
* Fixed a bug when creating the subtitles'XML: now ensures that an integer value is passed
* version 4.6.1 (2016-03-14)
* Fixed translations

View file

@ -64,7 +64,7 @@ except:
setup(
name='devedeng',
version='4.6.1',
version='4.7.0',
description='A video DVD creator',
long_description = "A program that allows to create video DVDs",

View file

@ -58,9 +58,9 @@ class subtitles_mux(devedeng.executor.executor):
out_xml.write(str(font_size))
if subt_upper:
out_xml.write('" bottom-margin="50')
out_xml.write('" fill-color="#%02X%02X%02X"' % tuple([fill_color[i] * 255 for i in range(len(fill_color))]))
out_xml.write(' outline-color="#%02X%02X%02X"' % tuple([outline_color[i] * 255 for i in range(len(outline_color))]))
print("Punto clave")
out_xml.write('" fill-color="#%02X%02X%02X"' % tuple([int(fill_color[i] * 255) for i in range(len(fill_color))]))
out_xml.write(' outline-color="#%02X%02X%02X"' % tuple([int(outline_color[i] * 255) for i in range(len(outline_color))]))
out_xml.write(' outline-thickness="%d"' % outline_thick)
out_xml.write(' font="arial" horizontal-alignment="center" vertical-alignment="bottom" aspect="')
out_xml.write(str(aspect))