from slugify import slugify from server.dna.constants import N_A EXTERNAL_LINKS_TEMPLATES = { "spotify": "https://open.spotify.com/track/{id}", "tiktok": "https://www.tiktok.com/music/{id}", # turn off according to [DNAD-389] [Track Page] Header/States - item 3 - the external links section # shows links to streaming services TikTok and Spotify. # TODO: uncomment when there are requirements for YT exterternal links. # "youtube": "https://www.youtube.com/channel/{id}", } GENRES = [ "African", "African Children's Music", "African Classical", "African Dance", "African Folk", "African Hip-Hop/Rap", "African Pop", "African Rock", "Afrobeat", "Alternative", "Alternative Rap", "Alternative Rock", "Ambient", "Arabic", "Arabic Children's Music", "Arabic Classical", "Arabic Dance", "Arabic Folk", "Arabic Hip-Hop/Rap", "Arabic Pop", "Arabic Rock", "Bachata", "Big Band", "Bluegrass", "Blues", "Bollywood", "Cantopop", "Celtic", "Chicago Blues", "Children's Music", "Choral", "Christian", "Classic Rock", "Classical", "Country", "Cumbia", "Dance", "Dancehall", "Delta Blues", "Devotional & Spiritual", "Dirty South", "Doo Wop", "Drum & Bass", "Dubstep", "East Coast Rap", "Easy Listening", "Electronic", "Flamenco", "Folk", "Forro", "Funk", "Gangsta Rap", "Ghazals", "Gospel", "Grunge", "Hard Bop", "Hard Rock", "Hip-Hop/Rap", "Holiday", "House", "Indian", "Indian Children's Music", "Indian Classical", "Indian Dance", "Indian Folk", "Indian Hip-Hop/Rap", "Indian Pop", "Indian Rock", "Indie Pop", "Indie Rock", "Industrial", "Instrumental", "J-Pop", "Jazz", "K-Pop", "Klezmer", "Latin", "Latin Children's Music", "Latin Classical", "Latin Dance", "Latin Folk", "Latin Hip-Hop/Rap", "Latin Pop", "Latin Rock", "Mandopop", "Merengue", "Metal", "Motown", "Neo-Soul", "New Age", "New Wave", "Oldies", "Opera", "Orchestral", "Polka", "Pop", "Psychedelic", "Punk", "R&B/Soul", "Reggae", "Reggaeton", "Rock", "Rockabilly", "Russelater", "Salsa", "Samba", "Schlager", "Sertanejo", "Singer/Songwriter", "Smooth Jazz", "Soft Rock", "Standard", "Swing", "Techno", "Trance", "Trap", "Vocal", "Worldbeat", ] + [N_A] GENRES_LIST_SLUG_NAME = [slugify(genre) for genre in GENRES] GENRES_MAPPER = [{"code": slugify(item), "name": item} for item in sorted(GENRES)]