fix lukas/openmediacenter#68 tmdb categories not indexed correctly

This commit is contained in:
2021-09-27 19:30:18 +02:00
parent e4f09eddac
commit 881281af70
4 changed files with 29 additions and 17 deletions

View File

@ -205,10 +205,14 @@ func fetchGenres() *[]TMDBGenre {
return nil
}
var t []TMDBGenre
type RespType struct {
Genres []TMDBGenre
}
var t RespType
err = json.Unmarshal(body, &t)
return &t
return &t.Genres
}
func GetGenres() *[]TMDBGenre {