mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
refactor(filters): music sources to media (#104)
This commit is contained in:
parent
373c85f060
commit
9b85f512e5
8 changed files with 145 additions and 35 deletions
|
@ -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}));
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
1
web/src/types/Action.d.ts
vendored
1
web/src/types/Action.d.ts
vendored
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue