After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 319320 - rhythmbox is not able to show song lyrics on demand
rhythmbox is not able to show song lyrics on demand
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: Plugins (other)
0.9.x
Other Linux
: Normal enhancement
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-10-20 14:10 UTC by Martin Seifert
Modified: 2006-06-11 08:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
first attempt (7.95 KB, patch)
2006-04-15 13:29 UTC, Jonathan Matthew
none Details | Review
somewhat better (8.97 KB, patch)
2006-04-25 13:09 UTC, Jonathan Matthew
none Details | Review
more interesting patch (44.01 KB, patch)
2006-05-15 12:14 UTC, Jonathan Matthew
committed Details | Review

Description Martin Seifert 2005-10-20 14:10:59 UTC
The feature to look up lyrics online and display them is not included. I love
this feature in quod libet, but I prefer rhythmbox anyway, so I hope you will
indlude this.

Kind regards,
Martin Seifert
Comment 1 Alex Lancaster 2006-04-12 09:56:30 UTC
Probably should be done as a plugin.  Changing component.
Comment 2 Jonathan Matthew 2006-04-15 13:29:46 UTC
Created attachment 63572 [details] [review]
first attempt

Stolen wholesale from quod libet.  Blocks the UI while retrieving lyrics, which sucks a bit.
Comment 3 Alex Lancaster 2006-04-15 13:45:30 UTC
Successfully installed plugin, get "Song Lyrics" in View menu, highlight a track and select "Song Lyrics", but nothing happens.  What is supposed to happen, a pop-up?
Comment 4 James "Doc" Livingston 2006-04-15 22:43:10 UTC
It only gets the lyrics for the playing track, and should probably disable the menu item when nothing is playing.

Works fine for me, aside from sometimes picking the wrong song.
Comment 5 Alex Lancaster 2006-04-16 05:57:31 UTC
Ah, didn't know it had to be playing.  OK, it seems to be working now.  I guess it would be nice to cache the results somewhere and an option to display them in song-properties or the right-click menu or something (amarok does something like this).  But good first start.
Comment 6 Jonathan Matthew 2006-04-25 13:09:08 UTC
Created attachment 64271 [details] [review]
somewhat better

Now does http requests asynchronously using gnomevfs if available, falling back to urllib if not.

It should also be easier to add alternate lyrics providers such as lyrc.com.ar.
Comment 7 James "Doc" Livingston 2006-04-28 12:45:19 UTC
One possible addition would be lyric caching, we could probably use "~/.gnome2/rhythmbox/lyrics/Artist - Title.txt" or similar.
Comment 8 Jonathan Matthew 2006-05-15 12:14:42 UTC
Created attachment 65494 [details] [review]
more interesting patch

This gives plugins the ability to add pages to the notebook used in the song info window (modifying the multiple-entry window so everything's inside a notebook), and adds a 'lyrics' page to the single-entry song info window.
Comment 9 James "Doc" Livingston 2006-05-16 11:30:27 UTC
Looks fairly good to me, aside from a couple of minor things. This is probably comittable if you're happy with it.

* it doesn't set the text to "searching for lyrics" when first created, only when you change the entry.
* the text view should be made uneditable, until we support saving them somewhere.
Comment 10 Viktor Kojouharov 2006-05-16 18:33:48 UTC
The song properties window really doesn't seem like a good idea to place the lyrics. For starters, you have to right click the song you are playing to get the lyrics (and that's for every song). Perhaps if the browser+search+song_tree are in one page  of a notebook, and the lyrics are on another page, it will be better (that way even more ui stuff like visualization can be added later)
Comment 11 Jonathan Matthew 2006-05-17 03:53:19 UTC
The plugin also adds a view->song lyrics menu item to display the lyrics for the playing song.  This currently brings up a new window, but I think I'd prefer it if it was integrated into the main window.  I'm not sure of the right way to do this, but I don't think adding a page to the source notebook is it.  If we start doing that for other features, then I'll take another look at it.

I've committed it with the fixes suggested above, and some minor changes to make it use a copy of the Loader module from the artdisplay plugin.  Slightly better than having code duplication inside the plugin itself.
Comment 12 Viktor Kojouharov 2006-05-17 17:35:05 UTC
I missed the view->song part. But that still just displays the current song, and after the song changes, it doesn't go off searching for the new lyrics.
Comment 13 James "Doc" Livingston 2006-05-18 03:35:04 UTC
Any suggestions about putting things (like lyrics) in the main UI should be done on bug 342207, which I've just filed.
Comment 14 Martin Seifert 2006-06-11 08:56:17 UTC
Now that this bug is marked "resolved", I just wanted to thank you. I tried it out with rhythmbox-0.9.4.90-1 from Debian SID and I really like the plugin.

Best regards
Martin