Skip to content

Commit

Permalink
[C-4074] Add Dancehall genre (#7947)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjeffers authored Mar 26, 2024
1 parent 417516f commit e33d709
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/common/src/utils/genres.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export enum Genre {
LATIN = 'Latin',
LOFI = 'Lo-Fi',
HYPERPOP = 'Hyperpop',
DANCEHALL = 'Dancehall',

// Electronic Subgenres
TECHNO = 'Techno',
Expand Down Expand Up @@ -118,6 +119,7 @@ export const GENRES = [
Genre.LATIN,
Genre.LOFI,
Genre.HYPERPOP,
Genre.DANCEHALL,
...Object.values(ELECTRONIC_SUBGENRES)
]

Expand Down
2 changes: 2 additions & 0 deletions packages/ddex/ingester/common/sdk_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const (
JerseyClub Genre = "Jersey Club"
Vaporwave Genre = "Vaporwave"
Moombahton Genre = "Moombahton"
Dancehall Genre = "Dancehall"
)

var stringToGenre = map[string]Genre{
Expand Down Expand Up @@ -110,6 +111,7 @@ var stringToGenre = map[string]Genre{
"Jersey Club": JerseyClub,
"Vaporwave": Vaporwave,
"Moombahton": Moombahton,
"Dancehall": Dancehall,
}

func ToGenre(s string) (Genre, bool) {
Expand Down
1 change: 1 addition & 0 deletions packages/discovery-provider/src/utils/hardcoded_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"Classical",
"Comedy",
"Country",
"Dancehall",
"Deep House",
"Devotional",
"Disco",
Expand Down
1 change: 1 addition & 0 deletions packages/libs/src/sdk/types/Genre.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export enum Genre {
LATIN = 'Latin',
LOFI = 'Lo-Fi',
HYPERPOP = 'Hyperpop',
DANCEHALL = 'Dancehall',

// Electronic Subgenres
TECHNO = 'Techno',
Expand Down

0 comments on commit e33d709

Please sign in to comment.