Tankōbon / main/services/library-organization / LibraryDecoder
Interface: LibraryDecoder
Defined in: main/services/library-organization.ts:29
The part of the decoder process these services call: opening a file to count its pages, and dropping a cover.
Methods
inspect()
inspect(
filePath):Promise<ArchiveSummary>
Defined in: main/services/library-organization.ts:31
Counts a file's pages and caches its cover.
Parameters
filePath
string
Returns
Promise<ArchiveSummary>
removeThumbnail()
removeThumbnail(
filePath):Promise<void>
Defined in: main/services/library-organization.ts:35
Deletes a book's cached thumbnail.
Parameters
filePath
string
Returns
Promise<void>
thumbnail()
thumbnail(
filePath,archiveId?,cachedOnly?):Promise<Uint8Array<ArrayBufferLike> |null>
Defined in: main/services/library-organization.ts:33
A book's thumbnail, generated when missing (unless cachedOnly); null when it has none.
Parameters
filePath
string
archiveId?
string
cachedOnly?
boolean
Returns
Promise<Uint8Array<ArrayBufferLike> | null>