Skip to content

Commit

Permalink
fixed anime-dl#688
Browse files Browse the repository at this point in the history
  • Loading branch information
ArjixWasTaken authored Jun 24, 2021
1 parent 9e3df85 commit df3089e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anime_downloader/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def get_session(custom_session=None, cache=True):

cachefile = os.path.join(tempfile.gettempdir(), cachefilename)
# requests_cache.install_cache(cachefile, backend='sqlite', expire_after=3600)
_session = requests_cache.CachedSession(cachefile, backend='sqlite', expire_after=expire_time)
_session = requests_cache.session.CachedSession(cachefile, backend='sqlite', expire_after=expire_time)
_session.hooks = {'response': cacheinfo_hook}

if custom_session:
Expand Down

0 comments on commit df3089e

Please sign in to comment.