Fix concat

This commit is contained in:
Zen 2021-05-04 03:01:43 +03:00 committed by GitHub
parent 20eeade740
commit c9f8c4a7bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,7 @@ def concatenate_ffmpeg(temp: Path, output: Path, encoder: str):
# Add the audio/subtitles/else file if one was extracted from the input
audio_file = temp / "audio.mkv"
if audio_file.exists() and audio_file.size() > 1024:
if audio_file.exists() and audio_file.stat().st_size > 1024:
audio = ("-i", audio_file.as_posix(), "-c", "copy", "-map", "1")
else:
audio = ()