mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-07-18 06:06:06 -04:00
Added more hooks, we now call the proper method to cache audio test results, added force flag to skip memmo checks and overwrite invalid memmos (useful when switching algos).
This commit is contained in:
@@ -114,6 +114,7 @@ class Session(object):
|
||||
self.settings = config_utils.load_config(paths.config_path(file_), paths.app_path("Conf.defaults"))
|
||||
self.init_sound()
|
||||
self.deshelve()
|
||||
self.fix_audio_tags()
|
||||
# except:
|
||||
# log.exception("The session configuration has failed.")
|
||||
# self.settings = None
|
||||
@@ -408,3 +409,10 @@ class Session(object):
|
||||
output.speak("An exception occurred while deshelving the " + application.name + " database. It will be deleted and rebuilt automatically. If this error persists, send the error log to the " + application.name + " developers.",True)
|
||||
log.exception("Exception while deshelving" + shelfname)
|
||||
os.remove(shelfname)
|
||||
|
||||
def fix_audio_tags(self,force=False):
|
||||
"Repair audio tags."
|
||||
for key,value in self.db.items():
|
||||
if type(value) == list:
|
||||
for t in value:
|
||||
utils.is_audio(t,force=force)
|
Reference in New Issue
Block a user