#!/bin/bash
SCRIPT="/root/.openclaw/workspace/music-pipeline3000/scripts/batch_step0_step1.sh"
BASE="/tmp/music-pipeline/batch"

# Already done: 01
# bash "$SCRIPT" "红色高跟鞋 蔡健雅" "$BASE/01_红色高跟鞋"

songs=(
  "唯一 邓紫棋|02_唯一"
  "Always Online 林俊杰|03_Always_Online"
  "Letting Go 蔡健雅|04_Letting_Go"
  "瞬 郑润泽|05_瞬"
  "特别的人 方大同|06_特别的人"
  "我记得 赵雷|07_我记得"
  "在你的身边 盛哲|08_在你的身边"
  "What I Miss 孙燕姿|09_What_I_Miss"
  "第57次取消发送 陆绮菲|10_第57次取消发送"
  "跳楼机 LBI利比|11_跳楼机"
)

for entry in "${songs[@]}"; do
  IFS='|' read -r query dir <<< "$entry"
  echo ""
  echo "=========================================="
  echo "Processing: $query"
  echo "=========================================="
  bash "$SCRIPT" "$query" "$BASE/$dir"
  if [ $? -ne 0 ]; then
    echo "FAILED: $query"
  fi
  # Small delay to avoid API rate limits
  sleep 2
done

echo ""
echo "=========================================="
echo "ALL DONE - Step 0 + Step 0.5 + Step 1"
echo "=========================================="
