This commit is contained in:
Jesse Bannon 2023-03-16 23:40:43 -07:00
parent 89b06132f6
commit fe8485377b

View file

@ -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)