From e33d709e47d58a7c6d301b584c0ccb47d40a1169 Mon Sep 17 00:00:00 2001 From: Dylan Jeffers Date: Tue, 26 Mar 2024 16:02:18 -0700 Subject: [PATCH] [C-4074] Add Dancehall genre (#7947) --- packages/common/src/utils/genres.ts | 2 ++ packages/ddex/ingester/common/sdk_types.go | 2 ++ packages/discovery-provider/src/utils/hardcoded_data.py | 1 + packages/libs/src/sdk/types/Genre.ts | 1 + 4 files changed, 6 insertions(+) diff --git a/packages/common/src/utils/genres.ts b/packages/common/src/utils/genres.ts index 96e79a4d994..d55ba9c7b4f 100644 --- a/packages/common/src/utils/genres.ts +++ b/packages/common/src/utils/genres.ts @@ -29,6 +29,7 @@ export enum Genre { LATIN = 'Latin', LOFI = 'Lo-Fi', HYPERPOP = 'Hyperpop', + DANCEHALL = 'Dancehall', // Electronic Subgenres TECHNO = 'Techno', @@ -118,6 +119,7 @@ export const GENRES = [ Genre.LATIN, Genre.LOFI, Genre.HYPERPOP, + Genre.DANCEHALL, ...Object.values(ELECTRONIC_SUBGENRES) ] diff --git a/packages/ddex/ingester/common/sdk_types.go b/packages/ddex/ingester/common/sdk_types.go index 11b9aa82ad9..d22933a3d6e 100644 --- a/packages/ddex/ingester/common/sdk_types.go +++ b/packages/ddex/ingester/common/sdk_types.go @@ -56,6 +56,7 @@ const ( JerseyClub Genre = "Jersey Club" Vaporwave Genre = "Vaporwave" Moombahton Genre = "Moombahton" + Dancehall Genre = "Dancehall" ) var stringToGenre = map[string]Genre{ @@ -110,6 +111,7 @@ var stringToGenre = map[string]Genre{ "Jersey Club": JerseyClub, "Vaporwave": Vaporwave, "Moombahton": Moombahton, + "Dancehall": Dancehall, } func ToGenre(s string) (Genre, bool) { diff --git a/packages/discovery-provider/src/utils/hardcoded_data.py b/packages/discovery-provider/src/utils/hardcoded_data.py index 19935e057df..8dddda0553c 100644 --- a/packages/discovery-provider/src/utils/hardcoded_data.py +++ b/packages/discovery-provider/src/utils/hardcoded_data.py @@ -56,6 +56,7 @@ "Classical", "Comedy", "Country", + "Dancehall", "Deep House", "Devotional", "Disco", diff --git a/packages/libs/src/sdk/types/Genre.ts b/packages/libs/src/sdk/types/Genre.ts index d7bd0dbf029..4b5b67a67df 100644 --- a/packages/libs/src/sdk/types/Genre.ts +++ b/packages/libs/src/sdk/types/Genre.ts @@ -29,6 +29,7 @@ export enum Genre { LATIN = 'Latin', LOFI = 'Lo-Fi', HYPERPOP = 'Hyperpop', + DANCEHALL = 'Dancehall', // Electronic Subgenres TECHNO = 'Techno',