diff --git a/server/src/modules/api/external-api/external-api.service.ts b/server/src/modules/api/external-api/external-api.service.ts index bb1e3fe8..e63df3d4 100644 --- a/server/src/modules/api/external-api/external-api.service.ts +++ b/server/src/modules/api/external-api/external-api.service.ts @@ -54,7 +54,7 @@ export class ExternalApiService { return response.data; } catch (err) { - Logger.debug(`GET request failed: ${err}`); + Logger.debug(`GET request to ${endpoint} failed: ${err}`, 'ExternalAPI'); return undefined; } } diff --git a/server/src/modules/collections/collection-worker.service.ts b/server/src/modules/collections/collection-worker.service.ts index e5fbd848..2765d192 100644 --- a/server/src/modules/collections/collection-worker.service.ts +++ b/server/src/modules/collections/collection-worker.service.ts @@ -484,7 +484,9 @@ export class CollectionWorkerService extends TaskBase { )?.id; } - const tmdbShow = await this.tmdbApi.getTvShow({ tvId: media.tmdbId }); + const tmdbShow = media.tmdbId + ? await this.tmdbApi.getTvShow({ tvId: media.tmdbId }) + : undefined; if (!tmdbShow?.external_ids?.tvdb_id) { let plexData = await this.plexApi.getMetadata(media.plexId.toString());