Delete library stills from disk before the catalog write, and stop caching their media.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+8
-8
@@ -1786,7 +1786,7 @@
|
||||
@click="openClip(entry.group.head)"
|
||||
>
|
||||
<span v-if="entry.group.head.hideThumbnail" class="sensitive-glow block h-full w-full" />
|
||||
<img v-else :src="`/api/library/clips/${entry.group.head.id}/thumb`" alt="" loading="lazy" decoding="async" class="h-full w-full object-cover">
|
||||
<img v-else :src="`/api/library/clips/${entry.group.head.id}/thumb?v=0`" alt="" loading="lazy" decoding="async" class="h-full w-full object-cover">
|
||||
</button>
|
||||
<div class="min-w-0 flex-1">
|
||||
<div class="flex items-start gap-2">
|
||||
@@ -2001,7 +2001,7 @@
|
||||
<span v-if="entry.stillGroup.head.hideInput" class="sensitive-glow block h-full w-full" />
|
||||
<img
|
||||
v-else
|
||||
:src="`/api/library/stills/${entry.stillGroup.head.id}?thumb=1`"
|
||||
:src="`/api/library/stills/${entry.stillGroup.head.id}?thumb=1&v=0`"
|
||||
alt=""
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
@@ -2092,7 +2092,7 @@
|
||||
>
|
||||
<button type="button" class="relative h-12 w-12 shrink-0 overflow-hidden rounded-lg bg-zinc-900" @click="openStill(item)">
|
||||
<span v-if="item.hideInput" class="sensitive-glow block h-full w-full" />
|
||||
<img v-else :src="`/api/library/stills/${item.id}?thumb=1`" alt="" loading="lazy" decoding="async" class="h-full w-full object-cover">
|
||||
<img v-else :src="`/api/library/stills/${item.id}?thumb=1&v=0`" alt="" loading="lazy" decoding="async" class="h-full w-full object-cover">
|
||||
</button>
|
||||
<div class="min-w-0 flex-1">
|
||||
<div class="flex items-start gap-2">
|
||||
@@ -5981,10 +5981,10 @@ function stepOutput(delta: number) {
|
||||
}
|
||||
|
||||
function showOutputStill(still: LibraryStill) {
|
||||
editResultUrl.value = `/api/library/stills/${still.id}`
|
||||
editResultUrl.value = `/api/library/stills/${still.id}?v=0`
|
||||
lastV2StillId.value = still.id
|
||||
editDownloadName.value = clipFileName(stillTitle(still))
|
||||
if (editLightboxUrl.value) editLightboxUrl.value = `/api/library/stills/${still.id}`
|
||||
if (editLightboxUrl.value) editLightboxUrl.value = `/api/library/stills/${still.id}?v=0`
|
||||
}
|
||||
|
||||
function stepOutputFamily(delta: number) {
|
||||
@@ -6514,7 +6514,7 @@ function openStill(still: LibraryStill) {
|
||||
// Preview only — never yank Video/Image workspace tabs.
|
||||
outputFocus.value = 'edit'
|
||||
browseFolderId.value = still.folderId
|
||||
editResultUrl.value = `/api/library/stills/${still.id}`
|
||||
editResultUrl.value = `/api/library/stills/${still.id}?v=0`
|
||||
concealEditOutput.value = still.hideInput === true
|
||||
editAwaitingReveal.value = still.hideInput === true
|
||||
editLockedSave.value = false
|
||||
@@ -7907,7 +7907,7 @@ function applyEditEvent(payload: Record<string, any>, hidden: boolean, folderLoc
|
||||
: (folderLocked || payload.folderLocked === true)
|
||||
|
||||
if (payload.stillId && !locked) {
|
||||
editResultUrl.value = `/api/library/stills/${payload.stillId}`
|
||||
editResultUrl.value = `/api/library/stills/${payload.stillId}?v=0`
|
||||
if (studioMode.value === 'editv2' || v2JobPending.value) lastV2StillId.value = payload.stillId
|
||||
editLockedSave.value = false
|
||||
if (payload.hideThumbnail || hidden) {
|
||||
@@ -7951,7 +7951,7 @@ function applyEditEvent(payload: Record<string, any>, hidden: boolean, folderLoc
|
||||
browseFolderId.value = folderId.value
|
||||
editStatusMessage.value = 'Saved to the locked folder. Unlock it to view.'
|
||||
} else {
|
||||
editResultUrl.value = `/api/library/stills/${payload.stillId}`
|
||||
editResultUrl.value = `/api/library/stills/${payload.stillId}?v=0`
|
||||
if (studioMode.value === 'editv2' || v2JobPending.value) lastV2StillId.value = payload.stillId
|
||||
concealEditOutput.value = Boolean(payload.hideThumbnail || hidden)
|
||||
editAwaitingReveal.value = concealEditOutput.value
|
||||
|
||||
Reference in New Issue
Block a user