Movie lists are missing `genre_ids`
Describe the bug
Upcoming, Now Playing, Popular and Top Rated have genre_ids, but they are missing in golang-tmdb. Instead their struct has Genres which will be empty.
To Reproduce Steps to reproduce the behavior:
- Call any of the mentioned lists:
upcoming, _ := tmdbClient.GetMovieUpcoming(nil) - Try to access
GenreIDs:upcoming.Results[0].GenreIDs - You get a missing field error for
GenreIDs - Instead
Genresfield exists but of course won't have the genres
Expected behavior
Field GenreIDs should exist and return the list of genre IDs.
Desktop (please complete the following information):
- OS: Linux
- Go Version: 1.25.4
Additional context Reference: https://developer.themoviedb.org/reference/movie-upcoming-list
Thanks for reporting this bug. I’ll investigate.
This issue has been fixed on #90
Thanks, I think MoviePopularResults needs to be changed as well, it's used by both MoviePopular and MovieTopRated
https://github.com/cyruzin/golang-tmdb/blob/bd87c9a94bd61b9178e41a07a22f64318f4a7b66/results.go#L407
Thanks, I think
MoviePopularResultsneeds to be changed as well, it's used by bothMoviePopularandMovieTopRatedLine 407 in bd87c9a
Genres []Genre
json:"genres"
I reopened this issue to fix this. Thanks.
@CIAvash fixed on https://github.com/cyruzin/golang-tmdb/pull/91