Now really uses the selected ISO creator
Fixed a bug when retrieving the configuration data for the burner and the ISO creator
This commit is contained in:
parent
57a6e764a4
commit
ea028d50c3
2 changed files with 15 additions and 5 deletions
|
|
@ -141,23 +141,28 @@ class configuration(GObject.GObject):
|
||||||
if linea[:15]=="menu_converter:":
|
if linea[:15]=="menu_converter:":
|
||||||
self.menu_converter = linea[15:].strip()
|
self.menu_converter = linea[15:].strip()
|
||||||
continue
|
continue
|
||||||
|
if linea[:7]=="burner:":
|
||||||
|
self.burner = linea[7:].strip()
|
||||||
|
continue
|
||||||
|
if linea[:6]=="mkiso:":
|
||||||
|
self.mkiso = linea[6:].strip()
|
||||||
|
continue
|
||||||
if linea[:19]=="subtitle_font_size:":
|
if linea[:19]=="subtitle_font_size:":
|
||||||
self.subtitles_font_size = int(linea[19:].strip())
|
self.subtitles_font_size = int(linea[19:].strip())
|
||||||
if linea[:7]=="burner:":
|
continue
|
||||||
self.burner = int(linea[7:].strip())
|
|
||||||
if linea[:6]=="mkiso:":
|
|
||||||
self.mkiso = int(linea[6:].strip())
|
|
||||||
config_data.close()
|
config_data.close()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
def set_disc_type(self,disc_type):
|
def set_disc_type(self,disc_type):
|
||||||
|
|
||||||
self.disc_type = disc_type
|
self.disc_type = disc_type
|
||||||
self.emit('disc_type',disc_type)
|
self.emit('disc_type',disc_type)
|
||||||
|
|
||||||
|
|
||||||
def save_config(self):
|
def save_config(self):
|
||||||
|
|
||||||
config_path = os.path.join(os.environ.get("HOME"),".devede")
|
config_path = os.path.join(os.environ.get("HOME"),".devede")
|
||||||
|
|
@ -198,16 +203,19 @@ class configuration(GObject.GObject):
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def append_log(self,data,cr = True):
|
def append_log(self,data,cr = True):
|
||||||
|
|
||||||
self.log+=data
|
self.log+=data
|
||||||
if (cr):
|
if (cr):
|
||||||
self.log += "\n"
|
self.log += "\n"
|
||||||
|
|
||||||
|
|
||||||
def clear_log(self):
|
def clear_log(self):
|
||||||
|
|
||||||
self.log = ""
|
self.log = ""
|
||||||
|
|
||||||
|
|
||||||
def get_log(self):
|
def get_log(self):
|
||||||
|
|
||||||
return self.log
|
return self.log
|
||||||
|
|
@ -453,7 +453,9 @@ class devede_project:
|
||||||
for element in final_dependencies:
|
for element in final_dependencies:
|
||||||
dvdauthor.add_dependency(element)
|
dvdauthor.add_dependency(element)
|
||||||
run_window.add_process(dvdauthor)
|
run_window.add_process(dvdauthor)
|
||||||
isocreator = devede.mkisofs.mkisofs()
|
|
||||||
|
cv = devede.converter.converter.get_converter()
|
||||||
|
isocreator = cv.get_mkiso()()
|
||||||
isocreator.create_iso(data.path, data.name)
|
isocreator.create_iso(data.path, data.name)
|
||||||
isocreator.add_dependency(dvdauthor)
|
isocreator.add_dependency(dvdauthor)
|
||||||
run_window.add_process(isocreator)
|
run_window.add_process(isocreator)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue