Hi,
I wrote something similar a few months ago. Basically I use a script that
downloads the lyrics from wiki lyrics (it is not written by me).
I just wrote the script that checks for the lyrics in the local cache and
if they are not found I invoke the script mentioned above.
If lyrics are found at the end I link them to my home directory (symbolic
link to the lyrics in the cache). And I use another script which prints the
lyrics from the link if it exists.
That way when I want to see the lyrics I just type `lyrcls` in a console
window. The script that downloads/links the lyrics is invoked by cmus
(status_display_program). And if I want I can search for other lyrics.
Something like:
# load_lyrics "Alice In Chains" "Nutshell"
# lyrcls
Basically my script acts like a proxy between cmus and the script that
downloads the lyrics.
First I try to find the Artist name and Title from the ID3 tag information
provided by cmus - If no ID3 tag is found I try to extract this information
from the file name (format: %artist - %title.ext).
Currently there is a small bug that appears some times (sporadically) -
When no lyrics are found a file for these lyrics is created in the cache
dir. I didn't have time to fix this but some day I will. And my script is
written in bash but I want to rewrite it in python - when I have time ; )
I can share it if you want.
It will take you ~ 10 minutes to set it up.
This is more convenient for me because cmus is running in a screen session
and it is not always visible. I have key-bindings for
next/previous/pause/vol up/vol down/search/forward/rewind and I am pretty
happy. Best music player ever.
Regards,
Vladimir
Post by Jason WoofendenPost by gtPost by Paul KramerI wouldn't include this in standard cmus to prevent it from bloating.
However, a plugin-system for cmus would be quite nice.
There were talks of a seperate (scriptable) view for different purposes
such as this, a few months back. But, i don't remember what the
conclusion was about it.
I'm not sure we had a conclusion exactly, but there was strong
opposition to the idea. There are myriad other ways of displaying
text to the user, hopefully you'll find at least one that work well
for you.
If you do hack cmus to have a text window, please post it here, but
just know that it has a low chance of being included in cmus
releases.
- Jason
------------------------------------------------------------------------------
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure