On some TVShows there is a different "number_of_episodes
" in the TVShow facts, if the Information is requested by "/tv/{id}".
On these TVShows the number of episodes is mostly one less than the "count" of all episodes of all seasons.
For example there a these TVShows i found: Heroes Reborn: https://www.themoviedb.org/tv/60858-heroes-reborn 1 Season with 1 Episode but in the API-Request there are 0 Episodes for the "number_of_episodes".
Gotham: https://www.themoviedb.org/tv/60708-gotham 1 Season with 22 Episodes but in the API-Request there are 21 Episodes for the "number_of_episodes".
I know the difference between requesting the "number_of_episodes" via the "/tv/{id}" call and calculate the number of Episodes via call the "/tv/{id}/season/{season_number}" and count the "episodes" array.
But at the end, there have to be the same result or not?
Can someone explain me whats wrong or whats my problem here?
찾으시는 영화나 TV 프로그램이 없나요? 로그인 하셔서 직접 만들어주세요.
이 항목을 평가하거나 목록에 추가할까요?
회원이 아닌가요?
Travis Bell님의 댓글
6월 22, 2015 at 12:43 오후
Hi CaptainBarnius,
I've re-synced the counts and found the reason they could get out of sync which I've also fixed. It should be good from here on in. You'll see the updated counts as soon as the items purge from cache (usually within 6 hours).
Cheers.
CaptainBarnius님의 댓글
6월 23, 2015 at 2:52 오전
Hello Travis,
thank you for fixing the counts of episodes. Now the number is correct!
Great work you, and all other doing here on themoviedb!