Fixed play_all dvd code.Successfully created DVD with playall option enabled and disabled.'Play All' plays all titles then returns to the menu.Titles play then preform user defined action.
This commit is contained in:
parent
70c8a709b2
commit
d152729d2d
1 changed files with 29 additions and 28 deletions
|
|
@ -394,20 +394,19 @@ class dvdauthor_converter(devedeng.executor.executor):
|
||||||
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
|
||||||
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
|
||||||
xml_file.write('\t\t\t\t\t\tg0=100;\n')
|
xml_file.write('\t\t\t\t\t\tg0=100;\n')
|
||||||
xml_file.write('\t\t\t\t\t\tcall vmgm menu entry title;\n')
|
|
||||||
else: #play next title
|
else: #play next title
|
||||||
xml_file.write('\t\t\t\t\tg0='+str(titles + 2))
|
xml_file.write('\t\t\t\t\t\tg0='+str(titles + 2)+';\n')
|
||||||
xml_file.write('\t\t\t\t\t}\n')
|
xml_file.write('\t\t\t\t\t} else {\n')
|
||||||
|
|
||||||
if (action=="action_stop"):
|
#end of play opt
|
||||||
xml_file.write('\t\t\t\t\tg0=100;\n')
|
xml_file.write('\t\t\t\t\t\tg0=')
|
||||||
xml_file.write('\t\t\t\t\tcall vmgm menu entry title;\n')
|
if action=="action_stop":
|
||||||
else:
|
xml_file.write('100')
|
||||||
xml_file.write('\t\t\t\t\tg0=')
|
elif action=="action_play_previous":
|
||||||
if action=="action_play_previous":
|
|
||||||
if titles == 0:
|
if titles == 0:
|
||||||
prev_t = total_t - 1
|
prev_t = total_t - 1
|
||||||
else:
|
else:
|
||||||
|
|
@ -427,7 +426,9 @@ class dvdauthor_converter(devedeng.executor.executor):
|
||||||
xml_file.write('1') # first
|
xml_file.write('1') # first
|
||||||
|
|
||||||
xml_file.write(';\n')
|
xml_file.write(';\n')
|
||||||
xml_file.write('\t\t\t\t\tcall vmgm menu entry title;\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</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")
|
||||||
xml_file.write("\t\t</titles>\n")
|
xml_file.write("\t\t</titles>\n")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue