Hello. I have written a small Audacious plugin to interface with this Amarok lyrics script. It is still in beta stage, but I think it's ready for an initial release.
It works with Audacious 2.3alpha, and at least version 0.13.4 of the Amarok script. However, the script's interface shouldn't really change, so I bet it will work with future versions, too.
If needed, I can provide a version compatible with 2.1, as well. Please send me a PM.
Right now, I can offer instructions to compile from source, but if anyone wants to help me make a .deb, I might get around to doing it. So, to install it, you:
- Install Ruby (unfortunately it's a dependency)
- Download the Wiki-lyrics Amarok script (clickable link), and extract it somewhere. Remember where.
- Download the latest audacious and audacious-plugins (and extract them)
- Download the plugin source (it is attached to this post), and extract it into the audacious-plugins/src/ folder.
- Edit the line:
in the audacious-plugins configure script, toCode:GENERAL_PLUGINS="song_change alarm skins vfstrace gtkui"
(it's line 7,487 or so, look for the line GENERAL_PLUGINS).Code:GENERAL_PLUGINS="song_change alarm skins vfstrace gtkui wikilyrics"- Install audacious and audacious-plugins via the normal method (configure, make, make install). You don't actually need to install audacious, but if you don't have the latest version installed, I suggest you do, so that audacious and audacious-plugins are in sync (otherwise audacious might not work, or the plugin might not).
To enable the plugin, go to Preferences > Plugins > General, and click the checkbox (it should have appeared under the name "Wiki-lyrics script integration". If not, something went wrong). Then, open the preferences window. Fill in the full path to the wikilyrics.rb script (it is under wiki_lyrics/cli/ in your installation of the amarok script), and click Apply (the one near the text entry).
Then, choose the sites you want to retrieve lyrics from. I suggest DarkLyrics,Lyriki and LyricWiki for starters, then you can experiment and make your own list. You can also change the order the sites will be queried, higher in the list means queried first. Then click on Apply (the one close to the sites list). Close the window.
An empty window should have appeared. Start a popular song, and the lyrics will probably appear inside the window (or "Lyrics not found."). That's it.
Note that the plugin saves the window size and location when the program closes, so resize the window and place it where you like. I also suggest you restart the program for the size and position to be saved, as a crash will prevent it.
NOTE: Right now, the plugin causes audacious to crash when run from Gnome's "Run progam..." dialog (at least in my PC). Please try whether this happens to you, and wether running audacious from the command line solves this. I have no idea why this should happen (it is extremely unexpected), but it will probably be resolved in some later release.
Also note that this plugin isn't in any way close to working as expected. I hope it will some day. Any comments and feedback appreciated.
Known issues:
- not running from command line will cause Audacious to crash when the plugin is active
- Non-ascii chars in titles or artist names might cause audacious to crash (but mostly don't)
UPDATE: Now under the GPL.
UPDATE 2: Updated for 2.3alpha.
Screenshot:
(if I have to move this to a more suitable forum, please tell me)
Bookmarks