refact (core): simplifies constants.py, removes redundancy, updates dependent code

This commit is contained in:
2026-09-01 12:17:21 +05:00
parent a67acc31b7
commit 7a7b63b03b
7 changed files with 42 additions and 57 deletions
@@ -16,7 +16,7 @@ export function useFormatValidation(
) {
useEffect(() => {
const selectedContainer = containers.find(c => c.name === options.container)
if (selectedContainer?.audio_only && hasVideo && !options.drop_video) {
if (!selectedContainer?.supports_video && hasVideo && !options.drop_video) {
setFormatError(
`Container '${options.container}' does not support video streams. Please enable "Drop video" or choose a container that supports video.`
)
-1
View File
@@ -48,7 +48,6 @@ export interface ContainerInfo {
name: string
ffmpeg: string
extension: string
audio_only: boolean
supports_video: boolean
supports_subs: boolean
}