Now doesn't fail when there is only one video file and no menu
This commit is contained in:
parent
b15197f315
commit
e5b3a4d32a
2 changed files with 15 additions and 5 deletions
2
setup.py
2
setup.py
|
|
@ -58,7 +58,7 @@ compile_translations()
|
||||||
setup(
|
setup(
|
||||||
name='devedeng',
|
name='devedeng',
|
||||||
|
|
||||||
version='4.2',
|
version='4.3',
|
||||||
|
|
||||||
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",
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,17 @@ class dvdauthor_converter(devedeng.executor.executor):
|
||||||
xml_file.write('<dvdauthor dest="'+datapath+'">\n')
|
xml_file.write('<dvdauthor dest="'+datapath+'">\n')
|
||||||
|
|
||||||
if onlyone:
|
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:
|
else:
|
||||||
xml_file.write('\t<vmgm>\n')
|
xml_file.write('\t<vmgm>\n')
|
||||||
|
|
||||||
|
|
@ -407,7 +417,7 @@ class dvdauthor_converter(devedeng.executor.executor):
|
||||||
xml_file.write('\t\t\t\t<post>\n')
|
xml_file.write('\t\t\t\t<post>\n')
|
||||||
files+=1
|
files+=1
|
||||||
xml_file.write('\t\t\t\t\tg1='+str(int(titles/elements_per_menu))+';\n')
|
xml_file.write('\t\t\t\t\tg1='+str(int(titles/elements_per_menu))+';\n')
|
||||||
|
|
||||||
#play all
|
#play all
|
||||||
xml_file.write('\t\t\t\t\tif (g3 eq 1) {\n') #if play all:
|
xml_file.write('\t\t\t\t\tif (g3 eq 1) {\n') #if play all:
|
||||||
if titles==total_t-1: #return to menu if last title
|
if titles==total_t-1: #return to menu if last title
|
||||||
|
|
@ -415,7 +425,7 @@ class dvdauthor_converter(devedeng.executor.executor):
|
||||||
else: #play next title
|
else: #play next title
|
||||||
xml_file.write('\t\t\t\t\t\tg0='+str(titles + 2)+';\n')
|
xml_file.write('\t\t\t\t\t\tg0='+str(titles + 2)+';\n')
|
||||||
xml_file.write('\t\t\t\t\t} else {\n')
|
xml_file.write('\t\t\t\t\t} else {\n')
|
||||||
|
|
||||||
#end of play opt
|
#end of play opt
|
||||||
xml_file.write('\t\t\t\t\t\tg0=')
|
xml_file.write('\t\t\t\t\t\tg0=')
|
||||||
if action=="action_stop":
|
if action=="action_stop":
|
||||||
|
|
@ -441,7 +451,7 @@ class dvdauthor_converter(devedeng.executor.executor):
|
||||||
|
|
||||||
xml_file.write(';\n')
|
xml_file.write(';\n')
|
||||||
xml_file.write('\t\t\t\t\t}\n')
|
xml_file.write('\t\t\t\t\t}\n')
|
||||||
|
|
||||||
xml_file.write('\t\t\t\t\tcall vmgm menu entry title;\n') #preform action
|
xml_file.write('\t\t\t\t\tcall vmgm menu entry title;\n') #preform action
|
||||||
xml_file.write('\t\t\t\t</post>\n')
|
xml_file.write('\t\t\t\t</post>\n')
|
||||||
xml_file.write("\t\t\t</pgc>\n")
|
xml_file.write("\t\t\t</pgc>\n")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue