add -y
This commit is contained in:
parent
89b06132f6
commit
fe8485377b
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue