Skip to content

Commit ed74fbc

Browse files
HaschikeksBorewit
andcommitted
Update lib/coverartarchive-api.ts
Co-authored-by: Borewit <23255260+Borewit@users.noreply.github.com>
1 parent c4b610b commit ed74fbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/coverartarchive-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class CoverArtArchiveApi {
3939
});
4040

4141
const contentType = response.headers.get("Content-Type");
42-
if (contentType?.toLowerCase() !== "application/json" && response.status === 404) {
42+
if (response.status === 404 && contentType?.toLowerCase() !== "application/json") {
4343
return {
4444
"error": "Not Found",
4545
"help": "For usage, please see: https://musicbrainz.org/development/mmd"

0 commit comments

Comments
 (0)