Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Messic lyrics backend and frontend #131

Open
AlmostLook opened this issue Feb 8, 2017 · 2 comments
Open

Messic lyrics backend and frontend #131

AlmostLook opened this issue Feb 8, 2017 · 2 comments

Comments

@AlmostLook
Copy link
Collaborator

Hi team,

     We're going to start to fetch lyrics to file and split them by track time.

After we'll design a frontend to show the lyrics in messic while song is ringing.

@AlmostLook
Copy link
Collaborator Author

API lyrics search engine -> https://www.programmableweb.com/category/lyrics/apis?category=20278

I use this:
https://makeitpersonal.co/lyrics/

We haven't resources to fetch artist and tittle from messic api.

#token, change messic user and password:
token=$(curl --insecure --data "j_username=usuario&j_password=password" 'https://localhost/messic/messiclogin' | cut -c 77-112)

#authors, it use token
authors=$(curl --insecure https://localhost/messic/services/authors?messic_token=$token)

#from mpd example:
artista=mpc -f %artist% | head -n 1
cancion=mpc -f %title% | head -n 1
API_letra="https://makeitpersonal.co/lyrics/"
curl -s --get "$API_letra" --data-urlencode "artist=$artista" --data-urlencode "title=$cancion"
echo -e "$artista - $title\n$song" | less -FX

I need current artist and title played at messic.

@AlmostLook
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant