Files
calibre-web/cps
haraldpdl 674b47bdbd Remove staged download from /tmp/calibre_web after response is sent
When config_embed_metadata is enabled with config_binariesdir or
config_kepubifypath set, do_download_file stages a copy of every
downloaded book under get_temp_dir() but never removes it. A bulk
OPDS or Kobo sync can fill the host filesystem in minutes; the
effect is amplified for comic formats (CBZ/CBR), where each
staged file can run to hundreds of MB or several GB. Once the
disk fills, downloads silently 404 and a container restart does
not recover the space.

Add an after_this_request hook that removes the staged copy after
the response is sent, gated on filename == get_temp_dir() so the
non-embed and gdrive-direct paths are untouched.
2026-04-18 07:12:38 +02:00
..
2024-11-04 21:20:34 +01:00
2025-04-12 03:59:32 +08:00
2026-02-14 11:30:50 +01:00
2022-05-22 12:49:00 +01:00
2024-09-07 20:07:45 +02:00
2026-04-15 20:31:40 +02:00
2022-05-21 21:52:59 +01:00
2025-03-23 09:18:48 +01:00
2026-04-14 23:23:12 +02:00
2026-04-14 22:12:57 +02:00
2026-02-14 11:30:50 +01:00
2026-04-14 22:12:57 +02:00
2024-07-02 20:53:08 +02:00
2026-04-14 22:10:30 +02:00
2024-12-13 18:03:14 +01:00
2025-03-23 15:12:06 +01:00
2024-07-29 20:08:17 +02:00
2026-04-14 22:28:06 +02:00
2025-03-30 12:03:12 +02:00
2025-12-20 13:22:20 +01:00
2025-11-22 15:06:40 +01:00
2026-03-01 15:44:29 +01:00
2025-03-30 12:03:12 +02:00
2024-11-11 18:46:07 +01:00
2026-02-18 18:59:29 +01:00