n->a and n->v filters

This commit is contained in:
Sam Lavigne 2023-08-21 11:55:11 -04:00
parent 7b62ce676a
commit 6b7170e0c7
2 changed files with 42 additions and 48 deletions

View File

@ -118,8 +118,6 @@
command.push("-i"); command.push("-i");
command.push(vid); command.push(vid);
} }
// let command = ["-i", "example.mp4"];
// const audioFilters = $filters.filter(f => f.type[0] === "A").map(makeFilterArgs); // const audioFilters = $filters.filter(f => f.type[0] === "A").map(makeFilterArgs);
// const videoFilters = $filters.filter(f => f.type[0] === "V").map(makeFilterArgs); // const videoFilters = $filters.filter(f => f.type[0] === "V").map(makeFilterArgs);
@ -316,11 +314,7 @@
flex: 1; flex: 1;
align-content: start; align-content: start;
} }
.filter {
/* width: 33%; */
}
h1, h1,
h2,
h3 { h3 {
font-weight: normal; font-weight: normal;
margin: 0; margin: 0;

View File

@ -1,6 +1,6 @@
<script> <script>
import uFuzzy from "@leeoniya/ufuzzy"; import uFuzzy from "@leeoniya/ufuzzy";
import { v4 as uuidv4 } from 'uuid'; import { v4 as uuidv4 } from "uuid";
import FILTERS from "./filters.json"; import FILTERS from "./filters.json";
import { filters } from "./stores.js"; import { filters } from "./stores.js";
@ -13,9 +13,9 @@
function selectFilters(sel) { function selectFilters(sel) {
if (sel == "video") { if (sel == "video") {
return FILTERS.filter(f => f.type[0] === "V") return FILTERS.filter((f) => f.type[0] === "V" || f.type === "N->V");
} else if (sel == "audio") { } else if (sel == "audio") {
return FILTERS.filter(f => f.type[0] === "A") return FILTERS.filter((f) => f.type[0] === "A" || f.type === "N->A");
} else { } else {
return [...FILTERS]; return [...FILTERS];
} }