Skip to content

Commit

Permalink
Fix(53): Filter out the av1 formats from the video format list
Browse files Browse the repository at this point in the history
  • Loading branch information
phucngo2 committed Aug 2, 2024
1 parent c5e7960 commit 138dc4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/renderer/config/theme.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createTheme } from "@mantine/core";
import { createTheme, MantineThemeOverride } from "@mantine/core";

export const theme = createTheme({
export const theme: MantineThemeOverride = createTheme({
/** Put your mantine theme override here */
});
6 changes: 4 additions & 2 deletions src/renderer/modules/video-download/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { IVideoFormat } from "@server/types";

export const filterFormatList = (
formatList: IVideoFormat[]
formatList: IVideoFormat[],
): IVideoFormat[] => {
return formatList.filter((item) => !!item.contentLength);
return formatList.filter(
(item) => !!item.contentLength && item.audioBitrate !== undefined,
);
};

0 comments on commit 138dc4d

Please sign in to comment.