refact (core): simplifies constants.py, removes redundancy, updates dependent code
This commit is contained in:
@@ -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.`
|
||||
)
|
||||
|
||||
@@ -48,7 +48,6 @@ export interface ContainerInfo {
|
||||
name: string
|
||||
ffmpeg: string
|
||||
extension: string
|
||||
audio_only: boolean
|
||||
supports_video: boolean
|
||||
supports_subs: boolean
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user