fix hardcoded path bug, prettify xml output
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>
Wed, 3 Sep 2008 16:19:13 +0000 (16:19 +0000)
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>
Wed, 3 Sep 2008 16:19:13 +0000 (16:19 +0000)
lib/python/Plugins/Extensions/DVDBurn/DVDProject.py
lib/python/Plugins/Extensions/DVDBurn/TitleList.py

index 48a7554..23f7a84 100644 (file)
@@ -37,16 +37,16 @@ class DVDProject:
                list.append(' vmgm="' + self.vmgm + '"')
                list.append(' />\n')
                list.append('\t<menu')
-               list.append(' bg="' + self.menubg + '"')
-               list.append(' audio="' + self.menuaudio + '"')
-               list.append(' color_button="' + str(self.color_button) + '"')
-               list.append(' color_highlight="' + str(self.color_highlight) + '"')
-               list.append(' color_headline="' + str(self.color_headline) + '"')
-               list.append(' font_face="' + self.font_face + '"')
-               list.append(' font_size="' + str(self.font_size) + '"')
-               list.append(' space_left="' + str(self.space_left) + '"')
-               list.append(' space_top="' + str(self.space_top) + '"')
-               list.append(' space_rows="' + str(self.space_rows) + '"')
+               list.append('\tbg="' + self.menubg + '"\n')
+               list.append('\t\taudio="' + self.menuaudio + '"\n')
+               list.append('\t\tcolor_button="' + str(self.color_button) + '"\n')
+               list.append('\t\tcolor_highlight="' + str(self.color_highlight) + '"\n')
+               list.append('\t\tcolor_headline="' + str(self.color_headline) + '"\n')
+               list.append('\t\tfont_face="' + self.font_face + '"\n')
+               list.append('\t\tfont_size="' + str(self.font_size) + '"\n')
+               list.append('\t\tspace_left="' + str(self.space_left) + '"\n')
+               list.append('\t\tspace_top="' + str(self.space_top) + '"\n')
+               list.append('\t\tspace_rows="' + str(self.space_rows) + '"')
                list.append(' />\n')
                list.append('\t<titles>\n')
                for title in self.titles:
index 2cbdf0b..c62fe03 100644 (file)
@@ -206,7 +206,8 @@ class TitleList(Screen):
                        self.updateTitleList()
 
        def saveProject(self):
-               self.project.saveProject("/testProgs/dvd/")
+               from Tools.Directories import resolveFilename, SCOPE_PLAYLIST           
+               self.project.saveProject(resolveFilename(SCOPE_PLAYLIST))
 
        def burnProject(self):
                self.project.waitboxref = self.project.session.open(WaitBox,self.burnProjectCB)