diff --git a/src/ytdl_sub/utils/thumbnail.py b/src/ytdl_sub/utils/thumbnail.py index 60d428c3..838aa19f 100644 --- a/src/ytdl_sub/utils/thumbnail.py +++ b/src/ytdl_sub/utils/thumbnail.py @@ -42,7 +42,7 @@ def convert_download_thumbnail(entry: Entry, error_if_not_found: bool = True) -> return if not download_thumbnail_path == download_thumbnail_path_as_jpg: - FFMPEG.run(["-bitexact", "-i", download_thumbnail_path, download_thumbnail_path_as_jpg]) + FFMPEG.run(["-y", "-bitexact", "-i", download_thumbnail_path, download_thumbnail_path_as_jpg]) FileHandler.delete(download_thumbnail_path) @@ -79,7 +79,7 @@ def download_and_convert_url_thumbnail( relative_file_path=thumbnail.name, extension="jpg" ) # Add timeout of 1 second in case ffmpeg hangs from a bad thumbnail - FFMPEG.run(["-bitexact", "-i", thumbnail.name, tmp_output_path], timeout=1) + FFMPEG.run(["-y", "-bitexact", "-i", thumbnail.name, tmp_output_path], timeout=1) # Have FileHandler handle the move to a potential cross-device FileHandler.move(tmp_output_path, output_thumbnail_path)