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