From f85dfb2f0b80ea030e7106534d1d00b29311ce80 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 3 Nov 2022 22:08:42 +0000 Subject: [PATCH] [Minor] Add size to the metadata exporter Issue: #4321 --- src/plugins/lua/metadata_exporter.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/lua/metadata_exporter.lua b/src/plugins/lua/metadata_exporter.lua index cd225e841..dceb81cd4 100644 --- a/src/plugins/lua/metadata_exporter.lua +++ b/src/plugins/lua/metadata_exporter.lua @@ -164,6 +164,8 @@ local function get_general_metadata(task, flatten, no_content) end r.scan_time = scan_real + local content = task:get_content() + r.size = content and content:len() or 0 if not no_content then r.header_from = process_header('from') -- 2.39.5