
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
This is a python script that will download lyrics for the song playing in Amarok 1.4x, Amarok 2, Rhythmbox, Audacious, Banshee, Exaile, Gmusicbrowser, Juk, Quod Libet, Listen, Songbird, Muine, Beep Media Player, and MPD and display the lyrics on your desktop with conky.
Both the deb and the tar include an example conkyrc file. The deb installs this in /usr/share/doc/lyricsdownloader/ .
For Amarok 2, Gmusicbrowser, Songbird, Audacious, Juk, BMP, Muine, Exaile, Listen, Quod Libet, Banshee or Rythmbox support, you need python-dbus installed. For MPD support, you must
have MPC also installed. Songbird also requires the extension 'dbusbird'. If you run this from your own conkyrc, make sure that text_buffer_size is set to a high enough value or the lyrics will be cut off. In the example conkyrc it's set to 6076.
If your favorite media player is not supported, leave a comment, and I'll see what I can do.
Requirements: python, beautifulsoup, python-dbus
NOTE: The album art in the screenshots is displayed with a separate superkaramba theme for Amarok 2. It's available here: http://kde-look.org/content/show.php/Amarok+2+Simple?content=93541
11 years ago
0.9.7
This is just a small change, but it should fix most of the problems that people are having with the lyrics.
0.9.6
The previous version quit working because lyricwiki was forced to shut down their API. This version fetches the web page and scrapes it for the lyrics. There still may be bugs. This version requires the python module beautifulsoup. In Debian and Ubuntu, the package is called python-beautifulsoup.
This version also adds the options "--artist" and "--songname" which can be used to fetch lyrics independently of any music players.
0.9.4
Added an alignment option, -a or --align. To use, you need to specify a conky alignment variable to use. Example: lyricsdownloader -a '${alignc}'
The single quotes around the setting are important. Otherwise, the shell will try to expand the variable.
What this does is output '${alignc}' (or whatever you choose) in front of each line so it's necessary to use ${execpi} in your conkyrc.
0.9.3
This update adds some bug fixes for Amarok 1.x. It also adds several new options. Lyricsdownloader can now output other information from the player along with the lyrics, like the song name, duration, position, volume. You can even specify a template file to format the output.
0.9.0
This one is a big update. I added support for Muine and Beep Media Player. Theres also now command line options.
Some of the cool things you can do with these options are that you can point it at a particular MP3 file with the -f switch and it will download the lyrics for that song. You can use the -d switch and download the lyrics for all the songs in a directory. You can use the -o switch to tell it where to download the lyrics to. For example, you can enter a directory for a specific album and run 'lyricsdownloader -d -o .' and it will download the lyrics for that album and store them in that directory.
0.8.5
Added some things to help with debugging.
0.8.4
Should install on 64 bit now.
0.8.3
Version checking broke with the Amarok 2.0 release.
0.8.2
Initial Release
11 years ago
0.9.7
This is just a small change, but it should fix most of the problems that people are having with the lyrics.
0.9.6
The previous version quit working because lyricwiki was forced to shut down their API. This version fetches the web page and scrapes it for the lyrics. There still may be bugs. This version requires the python module beautifulsoup. In Debian and Ubuntu, the package is called python-beautifulsoup.
This version also adds the options "--artist" and "--songname" which can be used to fetch lyrics independently of any music players.
0.9.4
Added an alignment option, -a or --align. To use, you need to specify a conky alignment variable to use. Example: lyricsdownloader -a '${alignc}'
The single quotes around the setting are important. Otherwise, the shell will try to expand the variable.
What this does is output '${alignc}' (or whatever you choose) in front of each line so it's necessary to use ${execpi} in your conkyrc.
0.9.3
This update adds some bug fixes for Amarok 1.x. It also adds several new options. Lyricsdownloader can now output other information from the player along with the lyrics, like the song name, duration, position, volume. You can even specify a template file to format the output.
0.9.0
This one is a big update. I added support for Muine and Beep Media Player. Theres also now command line options.
Some of the cool things you can do with these options are that you can point it at a particular MP3 file with the -f switch and it will download the lyrics for that song. You can use the -d switch and download the lyrics for all the songs in a directory. You can use the -o switch to tell it where to download the lyrics to. For example, you can enter a directory for a specific album and run 'lyricsdownloader -d -o .' and it will download the lyrics for that album and store them in that directory.
0.8.5
Added some things to help with debugging.
0.8.4
Should install on 64 bit now.
0.8.3
Version checking broke with the Amarok 2.0 release.
0.8.2
Initial Release
agihr
10 years ago
Report
vakerogalactico
11 years ago
[pre]
def cleanLyric(lyric):
resp = lyric.lstrip()
if resp.startswith('Send'):
cell = resp.find('Cell')
end = resp.find('<!--')
if cell > 0:
start = cell + 4
resp = resp[start:end]
for i in range(32, 255):
num = '%i'%(i)
rep = '&#'+num+';'
resp = resp.replace( rep, chr(i))
return resp
[/pre]
and i call it like this in line 635:
text = cleanLyric(text)
...hope this helps anyone
Report
downdiagonal
11 years ago
Report
chaopoch
11 years ago
Report
downdiagonal
11 years ago
Report
pajn
11 years ago
Lån etc...
Report
downdiagonal
11 years ago
Report
pajn
11 years ago
Report
pajn
11 years ago
exapmle: http://lyrics.wikia.com/Flyleaf:I%27m_So_Sick doesn't
Report
chunchengch
11 years ago
Can this problem be fixed? thanks a lot.
Report
downdiagonal
11 years ago
Report
chunchengch
11 years ago
???.mp3
?????.mp3
??.mp3
?????.mp3
thanks.
Report
downdiagonal
11 years ago
http://lyricsdownloader.googlecode.com/svn/trunk/lyricsdownloader.py
Report
chaopoch
11 years ago
Report
bigrza
11 years ago
i wanted to know if there is a function to scroll because some lyrics are too long for my display.
If not is it possible to print only the path of the downloaded lyric so i can make it scroll myself?
Report
fixtse
11 years ago
it works normally just that every 30 days i have to open it in mi country ^^!
Report
fixtse
11 years ago
:D
Report
downdiagonal
11 years ago
Report
pkjm17
11 years ago
tmp/lyricsdownloader_0.9.4.deb could not be opened, because the associated helper application does not exist. Change the association in your preferences.
What do I need to do to fix this?
Thanks
Report
downdiagonal
11 years ago
Report
pkjm17
11 years ago
clicking on the file in /tmp worked
Report
downdiagonal
11 years ago
Report
Emperor1982
11 years ago
Report
downdiagonal
11 years ago
Quote: else: print '\n'.join(lyrics)
to:
Quote: else: print '\n'.join(map(lambda x: x.center(100),lyrics))
Report
Emperor1982
11 years ago
Report