omdb.py icon indicating copy to clipboard operation
omdb.py copied to clipboard

Make using requests_cache optional with argument

Open seitzbg opened this issue 8 years ago • 0 comments

Should be pretty easy to drop in requests_cache flag along with parameters for caching. I have a lot of media to look up and it would definitely speed things up and reduce load on the server side!

Something like this seems to work in client.py:

self.session = requests_cache.CachedSession(cache_name='omdbapi_cache', expire_after=604800)

Obviously values for name/expire/backend could be passed in.

seitzbg avatar Jul 23 '17 07:07 seitzbg