godeezer / lib

Deezer API implementation in Go
ISC License
5 stars 3 forks source link

Add song genre to Song struct #7

Open toniz4 opened 3 years ago

toniz4 commented 3 years ago

The genre property would be useful for tagging the files when downloading, and the deezer api provides an Genre object and returns one in the Album object.

samhza commented 3 years ago

This library makes its requests on the https://www.deezer.com/ajax/gw-light.php endpoint, which (as far as I can tell) doesn't include a genre field like how the official API does. It'd be possible to make some sort of other client that could use the official API instead of using the endpoint that the Deezer mobile apps use, but I'm not sure if that functionality should be included in the current deezer.Client or in another struct (APIClient?) or package (deezerapi.Client?).