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>
13 lines
406 B
TypeScript
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)
|
|
})
|