Drive provider filters from the archive dataset
This commit is contained in:
+5
-1
@@ -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]
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user