name: music-dwn description: Search and download music from JioSaavn. Use when the user wants to find, download, or share a full song.
Music Downloader
This skill allows you to search for songs and retrieve high-quality download links.
Usage
Search for a song: Use the
search_music.pyscript to find songs.python3 skills/music-dwn/scripts/search_music.py "Song Name"Download and Send: After getting the
download_url, usecurlto download the file and themessagetool to send it to the chat.
Example Workflow
- User says: "Find and send me 'Shape of You'."
- Run:
python3 skills/music-dwn/scripts/search_music.py "Shape of You" - Select the best match from the results.
- Run:
curl -L "<download_url>" -o "Shape of You.m4a" - Run:
message(action="send", filePath="Shape of You.m4a", message="Here is 'Shape of You'!") - Run:
rm "Shape of You.m4a"
Notes
- The downloader prefers 320kbps quality when available.
- Files are typically in .m4a or .mp3 format depending on the source.
- Always clean up downloaded files after sending.