Now doesn't fail when there is only one video file and no menu

This commit is contained in:
Sergio Costas 2015-10-25 20:47:02 +01:00
parent b15197f315
commit e5b3a4d32a
2 changed files with 15 additions and 5 deletions

View file

@ -58,7 +58,7 @@ compile_translations()
setup(
name='devedeng',
version='4.2',
version='4.3',
description='A video DVD creator',
long_description = "A program that allows to create video DVDs",

View file

@ -83,7 +83,17 @@ class dvdauthor_converter(devedeng.executor.executor):
xml_file.write('<dvdauthor dest="'+datapath+'">\n')
if onlyone:
xml_file.write('\t<vmgm />\n')
xml_file.write('\t<vmgm>\n')
xml_file.write("\t\t<menus>\n")
xml_file.write('\t\t\t<video format="')
if self.config.PAL:
xml_file.write("pal")
else:
xml_file.write("ntsc")
xml_file.write('" aspect="4:3"> </video>\n')
xml_file.write("\t\t</menus>\n")
xml_file.write('\t</vmgm>\n')
else:
xml_file.write('\t<vmgm>\n')