validate_genre: Internal function to validate genre

Description Usage Arguments Value See Also

Description

It changes the string to titlecase if not already so and checks it against the list found on the website. The function fails / returns an error (I hope informative enough) when it can't find a match. I made this list for v2 of the API on 2017-02-16. It might change. I hope not. https://developer.musicgraph.com/api-docs/v2/dictionary

Usage

1
validate_genre(genrestring)

Arguments

genrestring

the genre string people give in searches

Value

a string formatted in the correct way that matches the genrelist.

See Also

Other validators: validate_artistID, validate_decade, validate_gender


RMHogervorst/musicgraph documentation built on May 8, 2019, 7:33 a.m.