Fix SSL certificate issue when downloading Essentia models

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 <noreply@anthropic.com>
This commit is contained in:
2025-12-02 23:06:49 +01:00
parent e863f61103
commit 6113da3fbf

View File

@@ -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