Mark recovery-exhausted rows unavailable
This commit is contained in:
+8
-3
@@ -453,9 +453,14 @@ export class MediaService {
|
||||
await this.engine.previewBatch(scrapeId, cleared.length);
|
||||
for (const row of cleared) {
|
||||
const after = store.getMedia(row.id);
|
||||
if (after?.preview_hash) this.recover.recovered++;
|
||||
else if (after?.preview_suspect) this.recover.deferred++;
|
||||
else this.recover.gone++;
|
||||
if (after?.preview_hash) {
|
||||
this.recover.recovered++;
|
||||
} else {
|
||||
// Refreshed URL plus a fetch still failed: the file is gone. Mark it
|
||||
// so later recovery runs do not retry it again.
|
||||
if (after?.preview_suspect) store.markUnavailableAfterRecovery(row.id);
|
||||
this.recover.gone++;
|
||||
}
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user