View Single Post
Old 12-27-2022, 09:57 PM   #10
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,449
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by yamusing View Post
for the website there isn't a bot detection for the website as it clearly states the Load limiting for API requests "25 entries per request, 4-5 sequential requests usually okay before having to wait for ~5 seconds". When I try to download metadata at once on Calibre it clearly doesn't have a time limit between requests as I can see it finished downloading metadata for 4 books in 3 seconds in the job interface so it send request one at a time without any delay.

Is there really no way to implment it on my side for creating a download metadata limit per book?

Or if possible add in time.sleep(10) in the metadata plugin would this work?
What website is this? None of the builtin plugins use an API. And yes if you are using a specific website then you will need to implement policies specific to it in the plugin. No time.sleep() wont work since downloads are threaded. You will need to use the rate_limit() decorator from sources/search_engines.py this is how the builtin plugins implement rate limiting.
kovidgoyal is online now   Reply With Quote