I found this entry:
{'adult': False,
'backdrop_path': None,
'genre_ids': ['Drama'],
'id': 830366,
'original_language': 'ru',
'original_title': 'Thoughts in the forest',
'overview': 'A man comes to an isolated forest to confront his troubled relationship with his girlfriend and brother.',
'popularity': 0.6,
'poster_path': '/nM7Gajs2mQxykQdFIE8sj4Md5Vn.jpg',
'release_date': '2021-05-04',
'title': 'Thoughts in the forest',
'video': False,
'vote_average': 10,
'vote_count': 1}
where the genre_ids is not an integer. This messes up my code, as I have to keep adding exceptions and checking that the fields are what they are expected to be. Is there a regular maintenance of the MTDB database to guarantee that the fields contain the correct type of data? Thanks
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by Travis Bell
on July 22, 2021 at 12:24 PM
That looks like something client side as a number of the values you have in your response are not values that we return on the API. For example:
We don't return
False
,None
integers forvote_average
, or an array of string genres.Request
Response
Reply by BuBanGo
on July 22, 2021 at 1:15 PM
I used the discover movie end:
I don't remember the page number, though.