Now jumps to the desired next video when the current movie ends and the creator set it to jump to another menu entry

This commit is contained in:
Sergio Costas 2015-01-22 00:38:29 +01:00
parent f765450864
commit 637d210199
3 changed files with 9 additions and 6 deletions

View file

@ -35,7 +35,7 @@ class configuration(GObject.GObject):
def __init__(self):
GObject.GObject.__init__(self)
self.version = "0.1 Beta 9"
self.version = "0.1 Beta 10"
def fill_config(self):

View file

@ -394,17 +394,17 @@ class dvdauthor_converter(devede.executor.executor):
prev_t = total_t - 1
else:
prev_t = titles - 1
xml_file.write(str(prev_t))
xml_file.write(str(prev_t + 1))
elif action=="action_play_again":
xml_file.write(str(titles))
xml_file.write(str(titles + 1))
elif action=="action_play_next":
if titles==total_t-1:
next_t=0
else:
next_t=titles+1
xml_file.write(str(next_t))
next_t=titles + 1
xml_file.write(str(next_t + 1))
elif action=="action_play_last":
xml_file.write(str(total_t-1))
xml_file.write(str(total_t))
else:
xml_file.write('1') # first