From 7cd3ebfcba7d64ac690bc17ea9ef53e218b80896 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Thu, 23 Oct 2025 21:38:44 +0800 Subject: [PATCH] compat: support .fb.zip files as FBZ format (#2307) Although .fb.zip is not an officially recognized extension, many FBZ files use this format, so it's now treated as FBZ for compatibility. --- apps/readest-app/src/libs/document.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/readest-app/src/libs/document.ts b/apps/readest-app/src/libs/document.ts index 9370eabc..a8ab4e0c 100644 --- a/apps/readest-app/src/libs/document.ts +++ b/apps/readest-app/src/libs/document.ts @@ -195,6 +195,7 @@ export class DocumentLoader { private isFBZ(): boolean { return ( this.file.type === 'application/x-zip-compressed-fb2' || + this.file.name.endsWith('.fb.zip') || this.file.name.endsWith('.fb2.zip') || this.file.name.endsWith(`.${EXTS.FBZ}`) );