Hello How can I track the output of new episodes for TV shows? Suppose I added 1000 serials. For each series, I must make at least two requests every day: 1. Check all episodes of the current season (for example, https://api.themoviedb.org/3/tv/54650/season/5?api_key=). 2 Check if the new season has come out (for example, https://api.themoviedb.org/3/tv/54650/season/6?api_key=). Total 2000 requests each day. Will this work?
Can I get a list of added episodes for each day? For example, the list of episodes added for August 1, 2018, for August 2, 2018... So I would have only one request per day.
Thanks
فیلم و نمایش تلویزیونی را نمیتوانید پیدا کنید؟ به سیستم وارد شوید تا آن را ایجاد کنید.
آیا میخواهید به این مورد امتیاز دهید یا به فهرست اضافه کنید؟
عضو نیستید؟
پاسخ توسط Travis Bell
در تاریخ اوت 7, 2018 ساعت 3:33 ب.ض
The TV show details method has two fairly new fields,
last_episode_to_air
andnext_episode_to_air
which might be helpful for you to track what's coming next. If either of those 2 fields don't work for you, the only way would be to check the season like you are already doing.There is no way to get a list of episodes that have been added per day.
پاسخ توسط davibrown84
در تاریخ اوت 8, 2018 ساعت 12:20 ق.ض
Thanks. Is there a limit on the number of requests per day ?
پاسخ توسط Travis Bell
در تاریخ اوت 8, 2018 ساعت 12:40 ب.ض
There's no limit per day per-say, our rate limiting is enforced in 10 second buckets per IP address. You can read more about that here: https://developers.themoviedb.org/3/getting-started/request-rate-limiting
پاسخ توسط davibrown84
در تاریخ اوت 9, 2018 ساعت 11:48 ق.ض
Thanks.
"You can use the X-RateLimit headers that get returned with every request to keep track of your current limits. If you exceed the limit, you will receive a 429 HTTP status with a Retry-After header"
That I add to this code (like X-RateLimit) so as not to get caught by the constraint: