From 6113da3fbf14e6db870e3154cd5ce7bd15f5f8b6 Mon Sep 17 00:00:00 2001 From: Benoit Date: Tue, 2 Dec 2025 23:06:49 +0100 Subject: [PATCH] Fix SSL certificate issue when downloading Essentia models MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use curl -k flag to bypass SSL verification for essentia.upf.edu Add file size check to ensure models are downloaded correctly 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- scripts/download-essentia-models.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/download-essentia-models.sh b/scripts/download-essentia-models.sh index aaf9bed..1eddd37 100755 --- a/scripts/download-essentia-models.sh +++ b/scripts/download-essentia-models.sh @@ -24,12 +24,14 @@ download_model() { echo "✓ $model_file already exists, skipping..." else echo "⬇️ Downloading $model_file..." - curl -L -o "$output_path" "$url" + # Use -k flag to ignore SSL certificate issues with essentia.upf.edu + curl -k -L -o "$output_path" "$url" - if [ -f "$output_path" ]; then - echo "✓ Downloaded $model_file" + if [ -f "$output_path" ] && [ -s "$output_path" ]; then + echo "✓ Downloaded $model_file ($(du -h "$output_path" | cut -f1))" else echo "✗ Failed to download $model_file" + rm -f "$output_path" # Remove empty/failed file exit 1 fi fi