From 2594afc60fe885d3d65143e80d1fee3f2b3a402b Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sun, 18 Feb 2024 22:21:56 +0100 Subject: [PATCH] Fix extraction when it has failed previously --- transcoder/src/extract.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/transcoder/src/extract.go b/transcoder/src/extract.go index ff1a0237..6f2e00ca 100644 --- a/transcoder/src/extract.go +++ b/transcoder/src/extract.go @@ -43,6 +43,8 @@ func (e *Extractor) Extract(path string, subs *[]Subtitle) (<-chan struct{}, err cmd := exec.Command( "ffmpeg", "-dump_attachment:t", "", + // override old attachments + "-y", "-i", path, ) cmd.Dir = attachment_path