Merge branch 'staging' into redesign-extension-manager

This commit is contained in:
Cohee
2024-12-08 16:30:16 +02:00
2 changed files with 1074 additions and 1073 deletions

View File

@@ -262,13 +262,13 @@ class AllTalkTtsProvider {
console.debug('AllTalkTTS: Settings loaded');
try {
// Check if TTS provider is ready
this.setupEventListeners();
this.updateLanguageDropdown();
await this.checkReady();
await this.updateSettingsFromServer(); // Fetch dynamic settings from the TTS server
await this.fetchTtsVoiceObjects(); // Fetch voices only if service is ready
await this.fetchRvcVoiceObjects(); // Fetch RVC voices
this.updateNarratorVoicesDropdown();
this.updateLanguageDropdown();
this.setupEventListeners();
this.applySettingsToHTML();
updateStatus('Ready');
} catch (error) {

View File

@@ -158,7 +158,8 @@ async function tryReadImage(imgPath, crop) {
return image;
}
// If it's an unsupported type of image (APNG) - just read the file as buffer
catch {
catch (error) {
console.log(`Failed to read image: ${imgPath}`, error);
return fs.readFileSync(imgPath);
}
}