Handle genres for tmdb #78

Open
opened 2018-02-06 14:30:42 +00:00 by KevinMidboe · 1 comment
KevinMidboe commented 2018-02-06 14:30:42 +00:00 (Migrated from github.com)

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.

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 commented 2018-03-20 11:50:26 +00:00 (Migrated from github.com)

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

List of endpoints in the tmdb library node uses. https://github.com/impronunciable/moviedb/blob/master/lib/endpoints.json
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KevinMidboe/seasonedShows#78
No description provided.