null config fix for threaded tasks using plugins endpoint

This commit is contained in:
CyferShepard
2025-03-07 23:01:49 +02:00
parent 32a0508f46
commit ec6a165c6b
2 changed files with 8 additions and 2 deletions

View File

@@ -454,7 +454,10 @@ class EmbyAPI {
async getInstalledPlugins() {
if (!this.configReady) {
return [];
const success = await this.#fetchConfig();
if (!success) {
return [];
}
}
try {
let url = `${this.config.JF_HOST}/plugins`;

View File

@@ -452,7 +452,10 @@ class JellyfinAPI {
async getInstalledPlugins() {
if (!this.configReady) {
return [];
const success = await this.#fetchConfig();
if (!success) {
return [];
}
}
try {
let url = `${this.config.JF_HOST}/plugins`;