Install
openclaw skills install dj-mp3-sourcerDownload music from links (YouTube, Spotify, etc.) by finding the best available source. Searches across platforms in priority order: Bandcamp, Beatport, Ama...
openclaw skills install dj-mp3-sourcerDJ-oriented music downloading skill. Takes any music link and finds the best available source, prioritizing extended mixes and MP3 320k output.
⚠️ Legal Notice: This skill is intended for downloading music you have the right to access — purchases, free releases, creative commons, etc. Respect copyright laws in your jurisdiction. The author is not responsible for misuse.
pip install yt-dlp spotdl
brew install ffmpeg # needed by yt-dlp for audio extraction
# optional
pip install bandcamp-dl # for free bandcamp downloads
Search in this order — stop at the first match:
spotdl) — good metadata/tagging, 320k MP3yt-dlp) — fallback, always worksFor paid sources (bandcamp, beatport, amazon), surface the purchase link with price. For free sources, download directly.
If free only mode is enabled, skip steps 1-3 and go straight to spotdl → yt-dlp.
Always prefer the extended mix over radio edits. An extended mix from a lower-priority source beats a radio edit from a higher-priority one.
Example: extended mix on YouTube > radio edit on Spotify.
When searching, append "extended mix" to queries. If only a radio edit exists, note it in the output.
yt-dlp --dump-json "<url>" | jq '{title, artist: .artist // .uploader, duration}'
"<artist> <title> extended mix site:bandcamp.com"
"<artist> <title> extended mix site:beatport.com"
"<artist> <title> site:amazon.com/music"
spotdl download "<spotify-url>" --output "{artist} - {title}" --format mp3 --bitrate 320k
yt-dlp -x --audio-format mp3 --audio-quality 0 \
--embed-thumbnail --add-metadata \
--metadata-from-title "%(artist)s - %(title)s" \
-o "%(artist)s - %(title)s.%(ext)s" "<url>"
yt-dlp filenames are often messy (NA - prefixes, (Official Video) suffixes, label names, wrong artist credits). Always run the normalization script after downloads complete.
Usage:
# 1. Write the tracklist as JSON (from the parsed tracklist in step 2)
cat > /tmp/tracklist.json << 'EOF'
[{"artist": "Karol G", "title": "Ivonny Bonita"}, {"artist": "Doja Cat", "title": "Woman (Never Dull's Disco Rework)"}]
EOF
# 2. Run the normalize script
scripts/normalize-filenames.sh ~/Downloads/set-name /tmp/tracklist.json
The script fuzzy-matches each mp3 in the directory to a tracklist entry and renames to clean Artist - Title.mp3 format. Unmatched files are left untouched.
The tracklist is the source of truth for filenames, not YouTube metadata.
| Setting | Default | Notes |
|---|---|---|
| Output directory | ~/Downloads/ | Where files are saved (subfolder per set when used with dj-set-ripper) |
| Format | mp3 320k | High-bitrate MP3; configurable to flac if needed |
| Extended mix | always | Prefer extended/original mix over radio edit |
| Free only | false | When true, skip paid sources (bandcamp, beatport, amazon) — only use spotdl and yt-dlp |
When given multiple links, process in parallel using sub-agents (sessions_spawn). Report results as each track completes.