Catch legitimately empty fingerprints
This commit is contained in:
parent
ef1c3a8958
commit
86bda25946
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user