From 189694cba5501834e95e4fb6b38b0b97ffbc04ac Mon Sep 17 00:00:00 2001 From: Fraxinas Date: Wed, 8 Jul 2009 11:07:31 +0200 Subject: [PATCH] DVDBurn... allow jumping from complex titleset titles to main disc menu. implement menu language selection. --- lib/python/Plugins/Extensions/DVDBurn/DVDProject.py | 4 +++- lib/python/Plugins/Extensions/DVDBurn/Process.py | 18 ++++++++++++++---- .../Plugins/Extensions/DVDBurn/ProjectSettings.py | 1 + 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/lib/python/Plugins/Extensions/DVDBurn/DVDProject.py b/lib/python/Plugins/Extensions/DVDBurn/DVDProject.py index 660234f..96fc380 100644 --- a/lib/python/Plugins/Extensions/DVDBurn/DVDProject.py +++ b/lib/python/Plugins/Extensions/DVDBurn/DVDProject.py @@ -113,7 +113,7 @@ class DVDProject: if project.nodeType == xml.dom.minidom.Element.nodeType: if project.tagName == 'settings': i = 0 - if project.attributes.length < len(self.settings.dict()): + if project.attributes.length < len(self.settings.dict())-1: self.error = "project attributes missing" raise AttributeError while i < project.attributes.length: @@ -175,6 +175,8 @@ class MenuTemplate(DVDProject): self.settings.thumb_size = ConfigSequence(seperator = ',', default = [200,158], limits = [(0,576),(-1,720)]) self.settings.thumb_border = ConfigInteger(default = 2, limits = (0, 20)) self.filekeys = ["menubg", "menuaudio", "fontface_headline", "fontface_title", "fontface_subtitle"] + from TitleProperties import languageChoices + self.settings.menulang = ConfigSelection(choices = languageChoices.choices, default=languageChoices.choices[1][0]) def loadTemplate(self, filename): ret = DVDProject.loadProject(self, filename) diff --git a/lib/python/Plugins/Extensions/DVDBurn/Process.py b/lib/python/Plugins/Extensions/DVDBurn/Process.py index 5f22f13..80e5899 100644 --- a/lib/python/Plugins/Extensions/DVDBurn/Process.py +++ b/lib/python/Plugins/Extensions/DVDBurn/Process.py @@ -679,7 +679,7 @@ def CreateAuthoringXML_singleset(job): authorxml.append('\n') authorxml.append(' \n') authorxml.append(' \n') - authorxml.append(' \n') + authorxml.append(' \n') authorxml.append(' \n') authorxml.append(' \n', ) if mode.startswith("menu"): @@ -691,7 +691,7 @@ def CreateAuthoringXML_singleset(job): authorxml.append(' \n') authorxml.append(' \n') if mode.startswith("menu"): - authorxml.append(' \n') + authorxml.append(' \n') authorxml.append('