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

@ -47,6 +47,9 @@ Some of the future ideas to add to Devede NG are, without an specific order:
## History of versions ## ## History of versions ##
* version 0.1 beta 10 (2015-01-22)
* Now jumps to the desired next video when the current movie ends and the creator set it to jump to another menu entry
* version 0.1 beta 9 (2015-01-16) * version 0.1 beta 9 (2015-01-16)
* Now doesn't fail with AVPROBE or FFPROBE if a file doesn't have streams * Now doesn't fail with AVPROBE or FFPROBE if a file doesn't have streams

View file

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

View file

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