diff --git a/HISTORY.md b/HISTORY.md index c175d9c..7d55c8c 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -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 diff --git a/setup.py b/setup.py index bcb895b..57946f4 100755 --- a/setup.py +++ b/setup.py @@ -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", diff --git a/src/devedeng/subtitles_mux.py b/src/devedeng/subtitles_mux.py index a28bfc7..f236880 100644 --- a/src/devedeng/subtitles_mux.py +++ b/src/devedeng/subtitles_mux.py @@ -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))