Files
aigen/server/api/library/index.get.ts
T
TowstyandCursor 2913909199 Fix library thumbnails and let clips keep a display name.
Extract a poster frame when a still-thumb is missing, and show the clip name in the library with the prompt on the info icon.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 18:49:46 -05:00

13 lines
406 B
TypeScript

export default defineEventHandler(async (event) => {
const library = publicLibrary(event)
try {
const { owner } = assertLibraryOwner(event)
const folderId = library.folders.find(folder => folder.unlocked)?.id
if (folderId) await importMissingComfyVideos(owner, folderId)
await ensureClipThumbnails(owner)
} catch {
return publicLibrary(event)
}
return publicLibrary(event)
})