Drive provider filters from the archive dataset

This commit is contained in:
Fisto
2026-09-17 11:11:31 +02:00
parent 8cb1faf8b4
commit 7c9aa43e10
10 changed files with 84 additions and 26 deletions
+5 -1
View File
@@ -21,6 +21,7 @@ import {
resolveDbRoot,
type MediaKind,
type MediaRow,
PROVIDER_FILTERS,
type BackfillSettings,
type BackfillStatus,
type MediaSort,
@@ -160,6 +161,8 @@ export interface MediaStatus {
scrapes: ScrapeMeta[];
/** ISO time while a Discord rate limit holds media traffic. */
limitedUntil: string | null;
/** The common providers, for the "Do not include" shortcuts in the Advanced drawer. */
providerFilters: string[];
}
export class MediaService {
@@ -491,7 +494,8 @@ export class MediaService {
scrapes: this.engine.list(),
limitedUntil: limit.active
? new Date(limit.until ?? Date.now() + limit.remainingMs).toISOString()
: null
: null,
providerFilters: [...PROVIDER_FILTERS]
};
}