From 4a7ed0974c5f4871e7f4e1cf106b4cd82783f44b Mon Sep 17 00:00:00 2001 From: derfenix Date: Tue, 9 Sep 2025 22:50:31 +0300 Subject: [PATCH] feat: Deduplicate fb2 authors --- src/application/parsers/fb2.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/application/parsers/fb2.rs b/src/application/parsers/fb2.rs index ce0d4b1..6ff03e1 100644 --- a/src/application/parsers/fb2.rs +++ b/src/application/parsers/fb2.rs @@ -255,5 +255,7 @@ pub fn parse_with_reader(reader: R, path: &Path) -> Result buf.clear(); } + book.author.dedup_by(|a, b| a.uniq_id() == b.uniq_id()); + Ok(vec![book]) }