diff --git a/CHANGES.md b/CHANGES.md index 7387771..01ecc4e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,9 @@ -### 0.23.0 (2020-11-11 13:30:00 UTC) +### 0.23.1 (2020-11-16 23:00:00 UTC) + +* Fix image failure for a show that is force updated, removed, then readded + + +### 0.23.0 (2020-11-11 13:30:00 UTC) * Change improve search performance for backlog, manual, failed, and proper * Add overview of the last release age/date at each newznab provider to History/Layout "Connect fails" diff --git a/lib/cachecontrol/controller.py b/lib/cachecontrol/controller.py index e411a32..aad14f4 100644 --- a/lib/cachecontrol/controller.py +++ b/lib/cachecontrol/controller.py @@ -410,7 +410,15 @@ class CacheController(object): cached_response.status = 200 # update our cache + try: + cached_response._fp.seek(0) + except (BaseException, Exception): + pass body = cached_response.read(decode_content=False) self.cache.set(cache_url, self.serializer.dumps(request, cached_response, body)) + try: + cached_response._fp.seek(0) + except (BaseException, Exception): + pass return cached_response