From 72c298344fcf39ee8a17d59ea993c6feb5c7f430 Mon Sep 17 00:00:00 2001 From: Nia Date: Thu, 12 Mar 2026 10:38:54 +0100 Subject: [PATCH] fix(Deezer): Treat record_type as lowercase Deezer is seemingly inconsistent about the record_type value being uppercase or lowercase. The code for handling the "compile" type would only work if it was returned as "COMPILE". Forcing a casing makes it work in both scenarios. --- providers/Deezer/api_types.ts | 2 +- providers/Deezer/mod.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/providers/Deezer/api_types.ts b/providers/Deezer/api_types.ts index 2b259109..4d6b1b41 100644 --- a/providers/Deezer/api_types.ts +++ b/providers/Deezer/api_types.ts @@ -82,7 +82,7 @@ export type Release = MinimalRelease & { /** The number of album's Fans */ fans: number; rating: number; // missing from https://developers.deezer.com/api/album - /** The record type of the album (EP / ALBUM / COMPILE etc..) */ + /** The record type of the album (ep / album / compile etc..) */ record_type: string; available: boolean; /** Whether the album contains explicit lyrics */ diff --git a/providers/Deezer/mod.ts b/providers/Deezer/mod.ts index 93ef3987..015886ec 100644 --- a/providers/Deezer/mod.ts +++ b/providers/Deezer/mod.ts @@ -289,7 +289,7 @@ export class DeezerReleaseLookup extends ReleaseApiLookup