Skip to content

Instantly share code, notes, and snippets.

@febuiles
Last active February 6, 2021 00:52
Show Gist options
  • Save febuiles/1549979 to your computer and use it in GitHub Desktop.
Save febuiles/1549979 to your computer and use it in GitHub Desktop.
# Updated version is always at: https://gist.github.com/febuiles/1549991
#!/bin/bash
artist=`osascript -e'tell application "iTunes"' -e'get artist of current track' -e'end tell'`
title=`osascript -e'tell application "iTunes"' -e'get name of current track' -e'end tell'`
song=`curl -s --get "https://makeitpersonal.co/lyrics" --data-urlencode "artist=$artist" --data-urlencode "title=$title"`
echo -e "$artist - $title\n$song"
@pcasaretto
Copy link

Hey, what is up with makeitpersonal? Most of the songs say "Taken down by Gracedown"

@febuiles
Copy link
Author

@pcasaretto: That was supposed to say "Taken down by Gracenote". They own the rights of a ton of songs and they like to send takedown notices to other sites that publish them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment