From 40f174db769ecbae64adc125533f42380b32d187 Mon Sep 17 00:00:00 2001 From: Dmitry Kokorin Date: Tue, 15 Sep 2026 12:17:59 +0300 Subject: [PATCH] =?UTF-8?q?downloads:=20item=2005=20EN=20(Abt=20Daimon=202?= =?UTF-8?q?005/2017)=20+=20item=2024=20(Franz=20EN=201974=20+=20RU=20?= =?UTF-8?q?=D0=9A=D0=B0=D1=81=D1=82=D0=B0=D0=BB=D0=B8=D1=8F=202018=20djvu)?= =?UTF-8?q?;=20items=2003=20big=20facsimiles=20+=2005=20RU=20+=2011=20RU?= =?UTF-8?q?=20in=20background=20queue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/lgdl.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tools/lgdl.py b/tools/lgdl.py index 38f3ffd..f2f5ed8 100644 --- a/tools/lgdl.py +++ b/tools/lgdl.py @@ -91,6 +91,8 @@ def sniff(data: bytes) -> str: return "epub/zip" if data[:8] == b"\xd0\xcf\x11\xe0\xa1\xb1\x1a\xe1": return "doc/ole" + if data[:8] in (b"AT&TFORM", b"AT&ToC\01", b"AT&ToC\02"): + return "djvu" if b"