
Local Lyrics
Source (link to git-repo or to original if based on someone elses unmodified work):
From now on this script is bundeld with "panzi's lyrics":
http://www.kde-apps.org/content/show.php?content=38120
Since version 1.0.1 it uses pyKDE and a overworked version of dcopext (included in the archive). dcopext is not LGPL. It's license is even lesser restrictiv, I think. See the source for more details.
This lyrics-plugin simply scan's a selected folder for textfiles with lyrics. This might be usefull when you have a lot of lyrics stored on your harddisc, but they are not available on lyrc.com.ar or a simmilar service.
Installation:
-------------
Open the lyrics-filesystem-x.x.x.amarokscript.tar.bz2 with amaroKs script managers script install option.
Usage:
------
Start the script with amaroKs script manager.
Select the directory in which the lyrics are stored.
The filenames of the lyrics have to be:
"artist - title.txt"
or
"title.txt"
Now amaroK will search this folder for lyrics, when there are none in it's database for the current track.
Author's Blog: http://twoday.tuwien.ac.at/pub/
1.0.2b
Extension type of the lyrics file will be ignored. (.txt is no longer a must)
In amarok.py:
Bugfix: customMenuClicked was not called
AD Plugin.addCustomMenue and Plugin.removeCustomMenue. use this so the plugin will automatically delete custom menues at exit.
AD exit-handler which captures the SIGTERM signal. just overload the exit-method. custom menues will be deleted automatically!
1.0.2a
fixed executeable rights. (hups)
1.0.2
Fixes in dcopext.py:
Now the bool datatype is handelt right.
amarok.py and lyrics_filesystem.py:
changed behavior a bit. the fetchLyrics method has now a return value (the xml formatted lyrics) and the calling function handels the submit to amarok.
added i18n with a self written i18n-API minii18n.py, see: http://twoday.tuwien.ac.at/pub/stories/22913/
1.0.1
Port to pyKDE. Now I don't use the dcop and kdialog tools, I use pyKDE instead. I had to overwork dcopext so it works to call amarok.contextbrowser.showLyrics(QString) (otherwise allways amarok.contextbrowser.showLyrics() was called).
The overworked dcopext is included.
1.0
Initial upload.
Ratings & Comments
5 Comments
Nice. But why do the lyrics files have to have the ending ".txt"? My lyrics e.g. are all named "title.lyrics" (for I have defined an own filetype for them with an own icon).
Hmm, well. Ok. I could change that. What would be best?- configure option which defines the extension(s)
- ignore extension complytely
Ok, I changed it so that the extension does not matter. Expect the update when my crappy blog is back online (Maximum Thread count reached) or when I find another hosting space.
Thanks :)
either let user defines the extension, or take all files. :))