Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle genres for tmdb #78

Open
KevinMidboe opened this issue Feb 6, 2018 · 1 comment
Open

Handle genres for tmdb #78

KevinMidboe opened this issue Feb 6, 2018 · 1 comment

Comments

@KevinMidboe
Copy link
Owner

When calling tmdb/search and tmdb/id (lookup) we get two different JSON attributes for genres. When we do a lookup of a movie we get a object with id and name:

genres: [
  { id: 53, name: 'Thriller' },
  { id: 18, name: 'Drama' },
  { id: 878, name: 'Science Fiction' },
  { id: 9648, name: 'Mystery' }
]

but when we search we only get a list of id:

genre_ids: [ 
  28, 
  53,
  878
]

We want to be able to get the genre as name in both cases.

@KevinMidboe
Copy link
Owner Author

List of endpoints in the tmdb library node uses.
https://github.com/impronunciable/moviedb/blob/master/lib/endpoints.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant