From cc2cd7118be80d8f381057ba47fcda4a5be3380c Mon Sep 17 00:00:00 2001 From: 4gac Date: Sun, 12 May 2024 22:38:39 +0200 Subject: [PATCH] fix: set language to catalog instead of metadata #2 --- src/lang_detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lang_detect.py b/src/lang_detect.py index 7604d63..9539488 100644 --- a/src/lang_detect.py +++ b/src/lang_detect.py @@ -74,7 +74,7 @@ def detect_pdf_lang(in_path: str, out_path: str): most_common_lang = string_counts.most_common(1) if out_path.endswith(".pdf"): - doc.SetInfo("Lang", most_common_lang[0][0]) + doc.SetLang(most_common_lang[0][0]) doc.Save(out_path, kSaveFull) else: