the discover movie API returns with different response body every day, some values are optionals and sometimes comes without being optionals so the response fails to be parsed in my data model
فیلم و نمایش تلویزیونی را نمیتوانید پیدا کنید؟ به سیستم وارد شوید تا آن را ایجاد کنید.
آیا میخواهید به این مورد امتیاز دهید یا به فهرست اضافه کنید؟
عضو نیستید؟
پاسخ توسط ticao2 🇧🇷 pt-BR
در تاریخ مه 22, 2020 ساعت 12:17 ق.ض
In order for someone to help you with API Request questions, it is critical that you post here the API Request you are using.
Remember to replace your Key with [THE_KEY] , or something like that.
For example, if you are using the parameter & sort_by = popularity.desc,
the answer may be different because the popularity changes every day.
For this and other reasons it is necessary to see your API Request.
پاسخ توسط AbdallahShawky
در تاریخ مه 22, 2020 ساعت 6:35 ب.ض
i use this API https://api.themoviedb.org/3/discover/movie?api_key=[THE_KEY]&language=en-US&sort_by=popularity.desc&include_adult=false&include_video=false&page=1
پاسخ توسط ticao2 🇧🇷 pt-BR
در تاریخ مه 22, 2020 ساعت 7:29 ب.ض
So, this is the reason.
Popularity changes all the time.
If I'm not mistaken, it is calculated based on:
Alias, see the first row of Posters on the TMDb homepage.
It is the Most Popular row.
Every time I update, the order changes.
What I didn't understand is what you mean by Optional Values.
What Values are you talking about?
In the answer, all the films have the same items.
An item may be blank because no user has added the data.