tagliatelle

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 7340252549aa10341fd937ef973bcad54a49a74d
parent 157d0caf1452807dfa0c0c71aeb4e3846013d391
Author: breadcat <breadcat@users.noreply.github.com>
Date:   Sun,  3 May 2026 01:02:57 +0100

Fix yt-dlp thumbnailer

Diffstat:
Minclude-uploads.go | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/include-uploads.go b/include-uploads.go @@ -272,6 +272,11 @@ func processVideoFile(tempPath, finalPath string) (string, string, error) { return "", "", fmt.Errorf("failed to re-encode HEVC video: %v", err) } os.Remove(tempPath) + + if err := generateThumbnail(finalPath, config.UploadDir, filepath.Base(finalPath)); err != nil { + log.Printf("Warning: could not generate thumbnail after HEVC re-encode: %v", err) + } + return finalPath, warningMsg, nil } if err := os.Rename(tempPath, finalPath); err != nil {