From 3525aca858f3938d7a93313cf5e81817bc041cf2 Mon Sep 17 00:00:00 2001 From: Inrixia Date: Mon, 7 Oct 2024 18:18:31 +1300 Subject: [PATCH] lib.makeTags - Small cleanup --- plugins/_lib/makeTags.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/_lib/makeTags.ts b/plugins/_lib/makeTags.ts index 0b68a116..a731ad98 100644 --- a/plugins/_lib/makeTags.ts +++ b/plugins/_lib/makeTags.ts @@ -13,15 +13,12 @@ export const fullTitle = (tidal?: { title?: string; version?: string }, musicBra const tidalTitle = tidal?.title; let title = brainzTitle ?? tidalTitle; - - // // If the musicBrainz title is missing "feat .", use the tidal title. - // const mbMissingFeat = tidalTitle?.includes("feat. ") && !brainzTitle?.includes("feat. "); + if (title === undefined) return undefined; // If the musicBrainz title is in another language and the tidal one isnt, use the tidal title. const mbInAnotherLanguage = !hasEnglish(brainzTitle) && hasEnglish(tidalTitle); - if (mbInAnotherLanguage) title = tidalTitle; - if (title === undefined) return undefined; + if (mbInAnotherLanguage && tidalTitle !== undefined) title = tidalTitle; // Dont use musicBrainz disambiguation as its not the same as the tidal version! const version = tidal?.version;