From c9f8c4a7bf1774cd197c9bc5a56b6e2caf5e6c92 Mon Sep 17 00:00:00 2001 From: Zen <46526140+master-of-zen@users.noreply.github.com> Date: Tue, 4 May 2021 03:01:43 +0300 Subject: [PATCH] Fix concat --- av1an/concat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/av1an/concat.py b/av1an/concat.py index 3ca8dd1..fd7263e 100644 --- a/av1an/concat.py +++ b/av1an/concat.py @@ -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 = ()