refactor(filters): music sources to media (#104)

This commit is contained in:
Ludvig Lundgren 2022-01-31 19:16:47 +01:00 committed by GitHub
parent 373c85f060
commit 9b85f512e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 145 additions and 35 deletions

View file

@ -52,15 +52,6 @@ export const sources = [
"Mixed",
"SiteRip",
"Webrip",
"CD",
"WEB",
"DVD",
"Vinyl",
"Soundboard",
"DAT",
"Cassette",
"Blu-Ray",
"SACD",
];
export const SOURCES_OPTIONS = sources.map(v => ({ value: v, label: v, key: v}));

View file

@ -252,6 +252,7 @@ export default function FilterDetails() {
actions: data.actions || [],
formats: data.formats || [],
quality: data.quality || [],
media: data.media || [],
match_release_types: data.match_release_types || [],
log_score: data.log_score,
log: data.log,
@ -406,7 +407,7 @@ function Music() {
</div>
<div className="mt-6 grid grid-cols-12 gap-6">
<MultiSelect name="sources" options={SOURCES_MUSIC_OPTIONS} label="sources" columns={6} />
<MultiSelect name="media" options={SOURCES_MUSIC_OPTIONS} label="Media" columns={6} />
<MultiSelect name="match_release_types" options={RELEASE_TYPE_MUSIC_OPTIONS} label="Type" columns={6} />
</div>

View file

@ -36,6 +36,7 @@ interface Filter {
match_release_types: string[];
quality: string[];
formats: string[];
media: string[];
match_hdr: string[];
except_hdr: string[];
log_score: number;