From 86bda2594690d71157775bde0675ddc18a6e17c5 Mon Sep 17 00:00:00 2001 From: TwistedUmbrellaX Date: Tue, 5 Mar 2024 17:33:51 -0500 Subject: [PATCH] Catch legitimately empty fingerprints --- .../Configuration/configPage.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html index c4bc9a1..b63d77d 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html @@ -746,12 +746,20 @@ lhs = await getJson("Intros/Episode/" + selectEpisode1.value + "/Chromaprint"); rhs = await getJson("Intros/Episode/" + selectEpisode2.value + "/Chromaprint"); - if (lhs === undefined) { + if (lhs === null) { + timestampError.value += "Error: " + selectEpisode1.value + " fingerprints missing!\n"; + } + else if (lhs === undefined) { timestampError.value += "Error: " + selectEpisode1.value + " fingerprints failed!\n"; } + + if (rhs === null) { + timestampError.value += "Error: " + selectEpisode2.value + " fingerprints missing!\n"; + } if (rhs === undefined) { timestampError.value += "Error: " + selectEpisode2.value + " fingerprints failed!"; } + if (timestampError.value == "") { timestampError.style.display = "none"; } else {