Lyrics screenlet

Conky

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

38
7.7
Description:

This screenlet downloads and display synchronized lyrics of music files playing in the audio player.

Version 0.7.0 allows to create and upload lyrics to the database (for some time it will be used for testing, but I'll try not to delete anything :P)
Steps to create synchronized lyrics:
find unsynchronized lyrics (later will be implemented by the screenlet itself)
drag&drop text or file with lyrics to screenlet
during playing song, use Space key to insert time info
save or upload lyrics before screenlet switch to another song :)

Requires:
python-numpy can be needed on Ubuntu and possibly some other distributions in the case of crashing when you move cursor over control buttons
python-chardet for better dealing with different lyrics encoding, but it's optional

Set lyrics offset:
by 0.1s: Shift+Up/Down key
by 0.5s: Up/Down key

Supported players:
Rhythmbox
Exaile
Banshee
Audacious
Amarok
Music Player Daemon based players
Quodlibet - need to install plugin in package
Listen 0.6 and higher
Gmusicbrowser
Xmms - need to install pyxmms
Any other that support MPRIS API (direct or with plugin) - vlc, Songbird ...

Supported lyrics sources: ALSong, minilyrics, lrcdb
Last changelog:

9 years ago

0.7.2
- fixed bug in saving/restoring cairo state in LyricsPanel visible on default theme
- searching lyrics on disk with ignoring case and accent and some bug fixes
- support of "offset" metadata in lyrics files
- added settings option - format of filename for saving/loading lyrics with automatic
conversion between them
- properties window works with newer screenlets package version

0.7.1
- fixed accessing of the song info metadata - doesn't crash on missing metadata
- works with a new gtk version (deprecation warning turned into TypeError)
- fixed bug in saving/restoring cairo context (in Widget and LyricsPanel classes)

0.7.0
- added possibility to upload lyrics to the database and using this database for searching
- reporting a missing lyrics to the database
- creating synchronized lyrics works again

0.6.9
-lyrics align settings: left, center, right
-lyrics translation on/off switch in menu
-update translation settings immediately
-safe minimizing (use when screenlet itself moves on desktop)
-works in gnome 2.30 (bug is in pycairo, not screenlet!)
0.6.8
- lyrics searching bug fix, now it should really works, I promise :D
0.6.7
- update of lyrics engine: ALSong now work again (it stopped to work at all after they changed ip address), minilyrics has better encoding handling
- theme update

older logs in changelog file

C

dencer

11 years ago

Then check if you haven't older version of screenlets package (actual is 0.1.2)

You should have "plugins" folder in /usr/lib/python<?>/site-packages/screenlets/ (complete by your python version). And if you have, send me output of ls command in this plugins folder.

Report

Alexiron

11 years ago

wait , it is all right now , the problem as you said was the ("from screenlets import Plugins") line , it just needed a restart after that , thank you so much my friend. , now i have another small issue , the lyrics shows one second alter after the time that they should be shown.What can i do?

Report

Alexiron

11 years ago

ok then , thanks for the help and the best screenlet ever :D :D

Report

C

dencer

11 years ago

this can happens when lyrics are downloaded from net, so if you allow saving lyrics on disk, it could be better for the next time. Now it is the only thing you can do, but I work on some improvements in searching/downloading. And lyrics timing control is planned too.

Report

C

dencer

11 years ago

try to delete first line ("from screenlets import Plugins") from file ./players/RhythmboxPlayer.py

Report

obedlink

11 years ago

Find the problem, the screenlet works only with mp3 files, my music is in ogg, ogg format is not supported :(, but outside of this screenlet works perfect.

FOUND: /home/obed/.screenlets/Lyrics/themes/default
theme.conf found! Loading option-overrides.
theme.conf loaded:
Name: dark
Author: Marcel Dancak
Version: 0.3
Info: Dark theme
Override: text_scale
Override: color_normal
Override: color_highlight
Set THEME
Screenlet has been initialized.
Restored instances from session 'default' ...
Player Connected: Rhythmbox
onSongChanged: /home/obed/Música/La Oreja De Van Gogh/La Oreja de Van Gogh - Muñeca de trapo.ogg
'/home/obed/Música/La Oreja De Van Gogh/La Oreja de Van Gogh - Muñeca de trapo.ogg' doesn't start with an ID3 tag
Can't compute check sum for non mp3 files
Can't compute check sum for non mp3 files
set elapsed: 106
onPlay
Rhythmbox API seek: 106
set elapsed: 106
OK

Report

C

dencer

11 years ago

now there is actualy no reason to support only mp3 format. This dependency was made in first releases, when only searching on alsong site by query based on checksum of the first mp3 frame was implemented. Unfortunately at that time I made more bad decisions :D, so dependency is even bigger, and e.g. saving lyrics on disk depends on this too. And yeah, I never programmed in python before, so some mistakes/strange code fragments may be still present:)

There are many things to improve on searching as well as on entire screenlet, and I plan to do it.

Report

obedlink

11 years ago

With this new version, in jaunty, and does not close the screenlet to pass the mouse over or click on it. But now only says "Lyrics not found" no finds, the lyrics of any song

Report

C

dencer

11 years ago

That's strange cause I didn't made any changes to finding/downloading lyrics since 0.2 or 0.21 version. If you installed new version on new system, check if mutagen library is installed, but even it isn't, some lyrics should be found from alsong site.

Anyway, I must improve logging for better troubleshooting, or just do less mistakes in programming :D

Report

switzak

11 years ago

The new version works very good except one thing. When the lyrics switch to a new line the text flashes in white. Not a big thing really but somewhat annoying. The previous versions didn't have this problem for me.

And I'll take this chance to bring my suggestion up again. To let the "lyrics not found" message fade after a few sec.

All in all I like this screenlet very much, thanks for making and releasing it!

Report

C

dencer

11 years ago

I still forget something to test before new version release. I noticed and fixed this already but I think it's not enought to new version.

I'm not yet decided how to hide "Lyrics not found". Make it transparent is easy to do, but screenlet will take much more place on desktop then really need (to do nothing). Minimalizing it like when no player is running need more work as it seems and now it's not errorless, so the more it will be used, the more troubles may occure.

Report

chriskin

11 years ago

the new version is even better, thank you for the good work :)

keep it up :)

Report

obedlink

11 years ago

I have problem with ubuntu 9.04, when you move the mouse over the screenlet or click on the screenlet it closes

Report

owencinho

11 years ago

The same here.
python $HOME/.screenlets/Lyrics/LyricsScreenlet.py output is:

.
.
.
Override: color_highlight
Set THEME
Screenlet has been initialized.
Restored instances from session 'default' ...
OK
ImportError: No module named numpy.core.multiarray
Segmentation Fault

Report

owencinho

11 years ago

Reply myself xD

Just googling:
sudo aptitude install python-numpy

Report

andresql

11 years ago

thanks. I was having the same problem over here

Report

chriskin

11 years ago

congrats, a VERY nice screenlet

thank you :)

Report

kenpuu

11 years ago

I don't know why, but when I try to resize or I put the mouse over the icons below, it crashs and closes. Any help?

Report

C

dencer

11 years ago

If you didn't changed icons resolution then I don't know whats wrog. As always, for more info you must run it from terminal: python $HOME/.screenlets/Lyrics/LyricsScreenlet.py

Control buttons in this form is rather temporary solution and was writen this way:-) They may be completely rewriten in later releases.

Report

Emperor1982

11 years ago

Same problem here. Ubuntu 9.04 64bit

Report

achteutis

11 years ago

man, beautiful work!! hope it be able to work with audacious. Thanks!!

Report

C

dencer

11 years ago

If I fix some issues with scaling text during animation and some others, I'll release new version with audacious, quodlibet, amarok, and mpd support. It will be soon

Report

KOSKERS

11 years ago

I am Ubuntu9.04
Rhythmbox

Report

C

dencer

11 years ago

Doesn't work at all? It needs window manager such as compiz or metacity. In other case you must rut it from terminal to get more info (missing library, ...)

Or, was the question meant about control buttons?

Report

usseldridge

11 years ago

Work great in Jaunty

Report

9 years ago

0.7.2
- fixed bug in saving/restoring cairo state in LyricsPanel visible on default theme
- searching lyrics on disk with ignoring case and accent and some bug fixes
- support of "offset" metadata in lyrics files
- added settings option - format of filename for saving/loading lyrics with automatic
conversion between them
- properties window works with newer screenlets package version

0.7.1
- fixed accessing of the song info metadata - doesn't crash on missing metadata
- works with a new gtk version (deprecation warning turned into TypeError)
- fixed bug in saving/restoring cairo context (in Widget and LyricsPanel classes)

0.7.0
- added possibility to upload lyrics to the database and using this database for searching
- reporting a missing lyrics to the database
- creating synchronized lyrics works again

0.6.9
-lyrics align settings: left, center, right
-lyrics translation on/off switch in menu
-update translation settings immediately
-safe minimizing (use when screenlet itself moves on desktop)
-works in gnome 2.30 (bug is in pycairo, not screenlet!)
0.6.8
- lyrics searching bug fix, now it should really works, I promise :D
0.6.7
- update of lyrics engine: ALSong now work again (it stopped to work at all after they changed ip address), minilyrics has better encoding handling
- theme update

older logs in changelog file

12345678910
112
product-maker mruchunglv Oct 07 2016 3 bad
product-maker KrakenHimoto Jul 28 2012 9 excellent
product-maker MadeInKobaia Jul 09 2012 9 excellent
product-maker scsimodo Dec 29 2011 9 excellent
product-maker torturedutopian Sep 02 2011 9 excellent
product-maker stratok Jun 19 2011 9 excellent
product-maker dodjob Apr 25 2011 9 excellent
product-maker Ubuntumutu Dec 22 2010 9 excellent
product-maker mystica Nov 30 2010 9 excellent
product-maker olegue Nov 27 2010 9 excellent
product-maker erar123 Nov 20 2010 9 excellent
product-maker aledb Nov 12 2010 9 excellent
product-maker balakrishnan Sep 25 2010 9 excellent
Be the first to comment
MojoMan
Feb 12 2016
Hellow
Mar 04 2015
atenrok
Dec 05 2012
MadeInKobaia
Jul 09 2012
dodjob
Apr 25 2011
boamaod
Apr 07 2011
y3m3th
Mar 19 2011
marcocolombini
Jan 28 2011
mystica
Nov 30 2010
olegue
Nov 27 2010
milanacow
Oct 20 2010
oemhack
Jun 26 2010
peacewithall
May 29 2010
play3man
May 25 2010
AstroLinux
May 19 2010
sgl
Apr 23 2010
Milena
Apr 12 2010
simunic
Mar 02 2010
erar123
Feb 26 2010
Kreisverkehr
Feb 10 2010
microscopuce
Jan 30 2010
lianimator
Jan 22 2010
Naf71
Jan 22 2010
firecad2006
Jan 21 2010
balakrishnan
Dec 02 2009
Potet
Oct 21 2009
LaGaDesk
Sep 13 2009
chriskin
Sep 12 2009
CLEARview
Sep 11 2009
kaeltas
Sep 04 2009
unformatted
Aug 18 2009
victorlisboa
Aug 04 2009
switzak
Mar 09 2009
naaamo2004
Mar 08 2009
epsyl
Mar 08 2009
PhobosK
Mar 07 2009
4tis
Mar 05 2009
Scnd101
Feb 09 2009
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.7.2
updated Mar 30 2011
added Feb 03 2009
downloads 24h
0
mediaviews 24h 0
pageviews 24h 8