dont error scan on ffprobe failure
All checks were successful
/ release (push) Successful in 26s

This commit is contained in:
Samuel Lorch 2024-07-07 02:18:09 +02:00
parent 75a578fd36
commit 67aa389f79

View file

@ -231,7 +231,7 @@ func scanLibrary(ctx context.Context, id int) {
ffprobeData, err := ffprobe.ProbeURL(ctx, fullPath) ffprobeData, err := ffprobe.ProbeURL(ctx, fullPath)
if err != nil { 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) slog.InfoContext(ctx, "ffprobe Done", "path", fullPath)
@ -259,7 +259,7 @@ func scanLibrary(ctx context.Context, id int) {
ffprobeData, err := ffprobe.ProbeURL(ctx, fullPath) ffprobeData, err := ffprobe.ProbeURL(ctx, fullPath)
if err != nil { 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) slog.InfoContext(ctx, "ffprobe Done", "path", fullPath)