Add the media downloader with hash storage and local file serving

This commit is contained in:
Fisto
2026-09-16 10:35:55 +02:00
parent 3ea72f587d
commit f7664256d1
15 changed files with 431 additions and 28 deletions
+4
View File
@@ -83,6 +83,10 @@ export interface ScrapeMeta {
media: Record<MediaKind, number>;
errors: number;
lastError: string | null;
/** Files fetched in download mode. */
downloaded?: number;
/** Files that failed after retries; skipped URLs are not counted here. */
downloadErrors?: number;
}
export function emptyMediaCounts(): Record<MediaKind, number> {