From 42c8e0215e9412e567f7197ad0adb15136232ff9 Mon Sep 17 00:00:00 2001 From: cbartondock Date: Sat, 25 May 2024 09:12:49 -0400 Subject: [PATCH] improve logging for fallback --- src/lang/en-US/langStrings.json | 4 ++-- src/renderer/components/parsers.component.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lang/en-US/langStrings.json b/src/lang/en-US/langStrings.json index 8362c71b1b..97546e107a 100644 --- a/src/lang/en-US/langStrings.json +++ b/src/lang/en-US/langStrings.json @@ -443,8 +443,8 @@ "imageQueries__i": "[${index}/${total}]: ${query}", "defaultImage__i": "[${index}/${total}]: Resolved fallback ${artworkType}:\r\n[${index}/${total}]: ${image}", "resolvedDefaultImage__i": "[${index}/${total}]: Fallback ${artworkType}:", - "localImages__i": "[${index}/${total}]: Resolved ${artworkType}:", - "resolvedLocalImages__i": "[${index}/${total}]: ${artworkType} glob:", + "localImages__i": "[${index}/${total}]: Resolved local ${artworkType}:", + "resolvedLocalImages__i": "[${index}/${total}]: Local ${artworkType} glob:", "indexInfo__i": "[${index}/${total}]: ${indexed}", "removedControllers__i": "Succesfully removed controllers for parser: ${configTitle}", "fetchedTemplates": "Fetched all controller templates" diff --git a/src/renderer/components/parsers.component.ts b/src/renderer/components/parsers.component.ts index cc39023f76..3ef0aba579 100644 --- a/src/renderer/components/parsers.component.ts +++ b/src/renderer/components/parsers.component.ts @@ -899,7 +899,7 @@ export class ParsersComponent implements AfterViewInit, OnDestroy { })); } } - if (data.files[i].defaultImage[artworkType] !== undefined) { + if (data.files[i].defaultImage[artworkType]) { success(this.lang.success.defaultImage__i.interpolate({ index: i+1, total: totalLength,