From 67aa389f791d2d52822c371be5d555dd7d8b60e9 Mon Sep 17 00:00:00 2001 From: Samuel Lorch Date: Sun, 7 Jul 2024 02:18:09 +0200 Subject: [PATCH] dont error scan on ffprobe failure --- server/scan.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/scan.go b/server/scan.go index 6b65947..8b58fc3 100644 --- a/server/scan.go +++ b/server/scan.go @@ -231,7 +231,7 @@ func scanLibrary(ctx context.Context, id int) { ffprobeData, err := ffprobe.ProbeURL(ctx, fullPath) if err != nil { - return fmt.Errorf("ffprobe New File: %w", err) + slog.ErrorContext(ctx, "ffprobe New File", "err", err) } slog.InfoContext(ctx, "ffprobe Done", "path", fullPath) @@ -259,7 +259,7 @@ func scanLibrary(ctx context.Context, id int) { ffprobeData, err := ffprobe.ProbeURL(ctx, fullPath) if err != nil { - return fmt.Errorf("ffprobe Changed File: %w", err) + slog.ErrorContext(ctx, "ffprobe Changed File", "err", err) } slog.InfoContext(ctx, "ffprobe Done", "path", fullPath)