videotomp3transcriptor/scripts/download.sh
StillHammer 849412c3bd Initial commit: Video to MP3 Transcriptor
- YouTube video/playlist download as MP3 (yt-dlp)
- Audio transcription with OpenAI (gpt-4o-transcribe, whisper-1)
- Translation with GPT-4o-mini (chunking for long texts)
- Web interface with progress bars and drag & drop
- CLI and REST API interfaces
- Linux shell scripts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-24 11:40:23 +08:00

21 lines
553 B
Bash

#!/bin/bash
# Download YouTube video/playlist as MP3
# Usage: ./download.sh <url> [output_dir]
cd "$(dirname "$0")/.."
URL="$1"
OUTPUT_DIR="${2:-./output}"
if [ -z "$URL" ]; then
echo "Usage: ./download.sh <youtube_url> [output_dir]"
echo ""
echo "Examples:"
echo " ./download.sh 'https://youtube.com/watch?v=VIDEO_ID'"
echo " ./download.sh 'https://youtube.com/playlist?list=PLAYLIST_ID'"
echo " ./download.sh 'https://youtube.com/watch?v=VIDEO_ID' ./my-folder"
exit 1
fi
npm run cli download "$URL" -o "$OUTPUT_DIR"