mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
97cd03325f
Scanned books are commonly distributed as DjVu, which the scanner only stored as a supplement. Decode pages on the server with DjVuLibre so DjVu imports with a cover and page count, opens in the image reader with its embedded OCR text, and can be the preferred format of an ordinary email recipient. Migration 0113 widens the recipient format check to allow it. Decoding runs on validated private snapshots behind a bounded, reader-first queue, and revalidation and cached pages are answered without a decoder. Released iOS builds cannot open DjVu, so series continuation offers it only to callers sending includeDjvu=true, and the dashboard and notebook read file never name it. The first full scan after upgrading promotes stored .djvu supplements to content.
21 lines
1.2 KiB
TypeScript
21 lines
1.2 KiB
TypeScript
import { Module } from '@nestjs/common';
|
|
import { DjvuDocumentModule } from '../djvu/djvu-document.module';
|
|
|
|
import { BookMetadataLockModule } from '../book-metadata-lock/book-metadata-lock.module';
|
|
import { BookCoverStoreModule } from '../book-cover-store/book-cover-store.module';
|
|
import { EmbeddingModule } from '../embedding/embedding.module';
|
|
import { MetadataScoreModule } from '../metadata-score/metadata-score.module';
|
|
import { NarratorModule } from '../narrator/narrator.module';
|
|
import { ComicMetadataRepository } from './comic-metadata.repository';
|
|
import { CoverSlotReconciler } from './cover-slot-reconciler.service';
|
|
import { MetadataExtractionService } from './metadata-extraction.service';
|
|
import { MetadataEventsService } from './metadata-events.service';
|
|
import { MetadataService } from './metadata.service';
|
|
|
|
@Module({
|
|
imports: [BookMetadataLockModule, BookCoverStoreModule, EmbeddingModule, MetadataScoreModule, NarratorModule, DjvuDocumentModule],
|
|
providers: [MetadataService, MetadataExtractionService, MetadataEventsService, ComicMetadataRepository, CoverSlotReconciler],
|
|
exports: [MetadataService, MetadataExtractionService, MetadataEventsService, ComicMetadataRepository, CoverSlotReconciler],
|
|
})
|
|
export class MetadataModule {}
|