Skip to content

Commit

Permalink
fix: set language to catalog instead of metadata #2
Browse files Browse the repository at this point in the history
  • Loading branch information
4gac committed May 12, 2024
1 parent 3a67c66 commit cc2cd71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lang_detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cc2cd71

Please sign in to comment.