add manga library

This commit is contained in:
Garret Patti
2026-04-19 20:25:06 -04:00
parent fbcd592609
commit b0e9c9790c
19 changed files with 1654 additions and 52 deletions

View File

@@ -20,6 +20,7 @@ const MIME_TYPES: Record<string, string> = {
'.bmp': 'image/bmp',
'.tiff': 'image/tiff',
'.tif': 'image/tiff',
'.cbz': 'application/zip',
'.zip': 'application/zip',
'.dmg': 'application/x-apple-diskimage',
'.gz': 'application/gzip',
@@ -43,6 +44,7 @@ function getMimeType(filePath: string): string {
function isDownloadAttachment(filePath: string): boolean {
const lower = filePath.toLowerCase()
return (
lower.endsWith('.cbz') ||
lower.endsWith('.zip') ||
lower.endsWith('.tar.gz') ||
lower.endsWith('.tar.bz2') ||