2018-11-21, 18:19
(2018-11-21, 16:05)axlt2002 Wrote: Ok, I gave a look to my log posted here and made a very rough calculation based on the curl requests to http://api.themoviedb.org/..., for example:If you turn on component-specific logging in the Kodi system settings, and select verbose logging for the libcURL library, you'll be able to see the Rate Limit in the returned headers in the debug log.
This are the relevant data:Code:CurlFile::Open(0x25ad7b446b0) http://api.themoviedb.org/3/tv/1402/season/2/episode/3
- First curl at: 17:34:56
- Error 429 at: 17:35:06
- Time interval: around 10 seconds
- Number of curls in that interval: 41
So we are really playing around the TMDB API rate limit of 40 requests every 10 seconds...
e.g.
Code:
16:13:18.911 T:8164 DEBUG: Curl::Debug - HEADER_IN: X-RateLimit-Limit: 40
16:13:18.912 T:8164 DEBUG: Curl::Debug - HEADER_IN: X-RateLimit-Remaining: 23
16:13:18.912 T:8164 DEBUG: Curl::Debug - HEADER_IN: X-RateLimit-Reset: 1542816811