Fixed a bug when creating the XML file for subtitles
This commit is contained in:
parent
f6c8588c49
commit
512e2f40c6
3 changed files with 7 additions and 4 deletions
|
|
@ -1,4 +1,7 @@
|
||||||
## History of versions ##
|
## 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)
|
* version 4.6.1 (2016-03-14)
|
||||||
* Fixed translations
|
* Fixed translations
|
||||||
|
|
||||||
|
|
|
||||||
2
setup.py
2
setup.py
|
|
@ -64,7 +64,7 @@ except:
|
||||||
setup(
|
setup(
|
||||||
name='devedeng',
|
name='devedeng',
|
||||||
|
|
||||||
version='4.6.1',
|
version='4.7.0',
|
||||||
|
|
||||||
description='A video DVD creator',
|
description='A video DVD creator',
|
||||||
long_description = "A program that allows to create video DVDs",
|
long_description = "A program that allows to create video DVDs",
|
||||||
|
|
|
||||||
|
|
@ -58,9 +58,9 @@ class subtitles_mux(devedeng.executor.executor):
|
||||||
out_xml.write(str(font_size))
|
out_xml.write(str(font_size))
|
||||||
if subt_upper:
|
if subt_upper:
|
||||||
out_xml.write('" bottom-margin="50')
|
out_xml.write('" bottom-margin="50')
|
||||||
|
print("Punto clave")
|
||||||
out_xml.write('" fill-color="#%02X%02X%02X"' % tuple([fill_color[i] * 255 for i in range(len(fill_color))]))
|
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([outline_color[i] * 255 for i in range(len(outline_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(' outline-thickness="%d"' % outline_thick)
|
||||||
out_xml.write(' font="arial" horizontal-alignment="center" vertical-alignment="bottom" aspect="')
|
out_xml.write(' font="arial" horizontal-alignment="center" vertical-alignment="bottom" aspect="')
|
||||||
out_xml.write(str(aspect))
|
out_xml.write(str(aspect))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue