fix: Hotfix radarr & sonarr configuration breaking
This commit is contained in:
@@ -28,8 +28,10 @@ export interface RadarrMovieOptions {
|
||||
function getRadarrApi() {
|
||||
const baseUrl = get(settings)?.radarr.baseUrl;
|
||||
const apiKey = get(settings)?.radarr.apiKey;
|
||||
const rootFolder = get(settings)?.radarr.rootFolderPath;
|
||||
const qualityProfileId = get(settings)?.radarr.qualityProfileId;
|
||||
|
||||
if (!baseUrl || !apiKey) return undefined;
|
||||
if (!baseUrl || !apiKey || !rootFolder || !qualityProfileId) return undefined;
|
||||
|
||||
console.log(baseUrl, apiKey);
|
||||
|
||||
|
||||
@@ -41,8 +41,12 @@ export interface SonarrSeriesOptions {
|
||||
function getSonarrApi() {
|
||||
const baseUrl = get(settings)?.sonarr.baseUrl;
|
||||
const apiKey = get(settings)?.sonarr.apiKey;
|
||||
const rootFolder = get(settings)?.sonarr.rootFolderPath;
|
||||
const qualityProfileId = get(settings)?.sonarr.qualityProfileId;
|
||||
const languageProfileId = get(settings)?.sonarr.languageProfileId;
|
||||
|
||||
if (!baseUrl || !apiKey) return undefined;
|
||||
if (!baseUrl || !apiKey || !rootFolder || !qualityProfileId || !languageProfileId)
|
||||
return undefined;
|
||||
|
||||
return createClient<paths>({
|
||||
baseUrl,
|
||||
|
||||
Reference in New Issue
Block a user