Wiki-Lyrics

Amarok 1.x Scripts

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

0
5 .0
Description:

A lyrics script to interface with various sites and, optionally, submit content to Lyriki.com or LyricWiki.org (wikis for lyrics). Lyrics can be searched on multiple sites according to a configurable priority.

Supported sites:
- Lyriki (www.lyriki.com)
- LyricWiki (www.lyricwiki.org)
- AZ Lyrics (www.azlyrics.com)
- Baidu MP3 (mp3.baidu.com)
- Dark Lyrics (www.darklyrics.com)
- Giitaayan (www.giitaayan.com)
- Jamendo (www.jamendo.com)
- Leos Lyrics (www.leoslyrics.com)
- Lyrc (lyrc.com.ar)
- Lyrics Download (www.lyricsdownload.com)
- Lyrics Mania (www.lyricsmania.com)
- Not Popular (www.notpopular.com)
- Seek Lyrics (www.seeklyrics.com)
- Sing365 (www.sing365.com)
- Terra Letras (letras.terra.com.br)

Dependencies:
- Amarok 1.4
- Ruby 1.8
- QtRuby, Ruby/GTK or Ruby/Tk

Translators wanted:
If you want to help, translate the script into your language and send me the result
(take a look at the i18n folder and ask if you need any help).


Important!!
The settings file format changed in version 0.13.2 so the old file must be removed when upgrading from versions of the script older than that one. Running the following command should take care of it:
rm $HOME/.kde/share/apps/amarok/scripts-data/wikilyrics.xml
Last changelog:

11 years ago

Version 0.13.4
- [Fix] update LyricWiki plugin to match site change
- [Fix] update Jamendo plugin to match site changes

Version 0.13.3
- [Change] search dcop program on predefined locations if not found in PATH (*)
- [Fix] update Sing365 plugin to match site changes
- [Fix] bug in Jamendo plugin removed line break from lyrics

(*) Fixes the script when using Amarok 1.4 on KDE4 with Gentoo (and probably other distros too)

Version 0.13.2
- [New] the script can now spawn threads to handle Amarok messages
- [New] added option to disable using threads (Ruby threads are not battery/power friendly...)
- [New] removed all unnecessary usage of threads (parsing Amarok messages, Tk GUI backend)
- [Fix] check if song page exists before attempting to submit it (wiki plugins)
- [Fix] relogin when session expires (wiki plugins)
- [Fix] parsing of suggestions in wiki plugins
- [Fix] update Dark Lyrics plugin to match site changes
- [Fix] update Jamendo plugin to match site changes
- [Fix] update Lyrics Download plugin to match site changes
- [Fix] update Seek Lyrics plugin to match site changes
- [Change] replaced NotPopular.com plugin with LoudSon.gs plugin (NotPopular.com site lyrics now point to LoudSon.gs)
- [Change] removed Lyrc plugin as site has been down for more than a month
- [Change] removed Baidu MP3 plugin as site no longer provides lyrics

enr1x

13 years ago

I reinstalled ruby-qt and works like a charm. Thank you! Just a thought: all those scripts that come with your packages are installed by default, so there's one less problem.

Report

Dunhausen

13 years ago

Unfortunately, the command line version of the script does not do as it should (and as it is documented to do).

For one, it does not take a list of lyric sites--it can only handle one! Try to put a comma separated list in there and it will throw you an error.

For another, the --sites-list function gives you useless flags. For example, it says " - cs (www.azlyrics.com)" as the first entry, but you cannot use 'cs' to refer to it. You have to go back a directory and look at the name of the module and use that, i.e., 'AZLyrics.'

But it is the fact that it cannot handle more than one site that is problematic for me. :'(

Report

C

attendant

13 years ago

thanks for reporting. it's fixed now.

Report

Dunhausen

13 years ago

Wow, that was like lightning. :)

Is the fix in the download linked above?

The version I just downloaded seemed to be the same as the previous.

Report

C

attendant

13 years ago

nope, sorry. i should have mentioned it had been fixed in trunk...
however, i just released a new version with the fix on it.

Report

Dunhausen

13 years ago

Awesome, CLI works beautifully now. :)

I think the new version of the actual Amarok plugin is misbehaving now, however, when it looks for lyrics that it doesn't find on the first website.

Output from my wikilyrics.log is below--shouldn't it try other sites in my list once "AZ LYRICS" fails? At any event, the Amarok dialogue just says "Feching lyrics..." until the next song crops up.

AZ LYRICS
Attempting LYRICS DIRECT SEARCH...
- received artist: Rilo Kiley
- received title: Silver Lining
- received album: Under the Blacklight
- received year: 2007
- built lyrics url: http://www.google.com/search?q=%22Rilo+Kiley%22+%22Silver+Lining%22+lyrics+site%3Awww.azlyrics.com/lyrics&btnI
Fetching lyrics page... OK
INVALID LYRICS PAGE FOUND
AZ LYRICS
Retrieving SUGGESTIONS...
- received artist: Rilo Kiley
- received title: Silver Lining
- received album: Under the Blacklight
- received year: 2007
- built suggestions url: http://www.google.com/search?q=%22Rilo+Kiley%22+lyrics+site%3Awww.azlyrics.com&btnI
Fetching suggestions page... OK
INVALID SUGGESTIONS PAGE FOUND
AZ LYRICS
Searching LYRICS FROM SUGGESTIONS...
AZ LYRICS
Retrieving SUGGESTIONS...
- received artist: Rilo Kiley
- received title: Silver Lining
- received album: Under the Blacklight
- received year: 2007
- built suggestions url: http://www.google.com/search?q=%22Rilo+Kiley%22+lyrics+site%3Awww.azlyrics.com&btnI
Fetching suggestions page... OK
INVALID SUGGESTIONS PAGE FOUND

Report

C

attendant

13 years ago

Well, fetching 2 times the same suggestions page is not the right thing to do... I'll have a look at it.

Report

d34th

13 years ago

Im using wikilyrics on amarok 1.4.7 and whe I try to get a lyric it only displays "Downliading lyric" Here is the log, it seems to be all ok, but it doesn't download any lyric at all

LEOS LYRICS
Attempting LYRICS DIRECT SEARCH...
- received artist: Sonata Arctica
- received title: Under your tree
- received album: Unia
- received year: 2007
- built lyrics url:
LEOS LYRICS
Retrieving SUGGESTIONS...
- received artist: Sonata Arctica
- received title: Under your tree
- received album: Unia
- received year: 2007
- built suggestions url: http://www.leoslyrics.com/search.php?search=Sonata+Arctica+Under+your+tree&sartist=1&ssongtitle=1
Fetching suggestions page... OK
Parsing suggestions...
- art: Sonata Arctica | tit: Under Your Tree | url: http://www.leoslyrics.com/listlyrics.php?hid=BSlakBYIgwo%3D
...
...
LEOS LYRICS
Searching LYRICS FROM SUGGESTIONS...
Scanning suggestions... MATCH FOUND
- art: Sonata Arctica | tit: Under Your Tree | url: http://www.leoslyrics.com/listlyrics.php?hid=BSlakBYIgwo%3D
LEOS LYRICS
Retrieving LYRICS FROM URL...
- received url: http://www.leoslyrics.com/listlyrics.php?hid=BSlakBYIgwo%3D
- received artist: Sonata Arctica
- received title: Under Your Tree
- received album: Unia
- received year: 2007
Fetching lyrics page... OK
Parsing lyrics... LYRICS FOUND
- parsed artist: Sonata Arctica
- parsed title: Under Your Tree

Report

C

attendant

13 years ago

i can't reproduce this with v0.12.2.
what version are you using?

Report

d34th

13 years ago

I'm using v 0.12.2 I've also noticed that I cannot configure the scripts.
I change the settings and whe I press ok

Wiki-lyrics ended with error code:1 or similar (in spanish)
and an error message

Error loading Qt3 GUI backend: Wrong Qt version found (Qt3 expected but Qt4 found)
X Error: BadMatch (invalid parameter attributes) 8
Extension: 154 (RENDER)
Minor opcode: 4 (RenderCreatePicture)
Resource id: 0x4a00001
X Error of failed request: RenderBadPicture (invalid Picture parameter)
Major opcode of failed request: 154 (RENDER)
Minor opcode of failed request: 7 (RenderFreePicture)
Picture id in failed request: 0x4a0004d
Serial number of failed request: 32269
Current serial number in output stream: 32390

Report

C

attendant

13 years ago

well, that doesn't looks like a wiki-lyrics bug... nevertheless:
what distro are you running? do you have qtruby installed? if so, what version?
also, what was your sites configuration when you reported the previous issue? what amarok version were you using?

Report

d34th

13 years ago

I reinstalled the scripts and deleted all config files, and now seems to work, I still cannot choose the order of ths scripts (which one will be executed first...) when I tru to set, it crashes leaving no error

Report

C

attendant

13 years ago

do you know what gui backend is it using? (qt3/qt4/gtk/tk)

Report

C

attendant

13 years ago

i forgot... can you reproduce any of this bugs?

Report

thien

13 years ago

can any one help me installing this script.


please tell me how to install this script

Report

C

attendant

13 years ago

in Amarok tools menu select "script Manager". once in the script manager you can either:
a. select "get more scripts", then search "Wiki-Lyrics" and press install (or download, i don't remember exactly).
b. select "install script" and search for the file you can download in this page.

Report

root42

13 years ago

It works! Now the errors I had with the previous version are gone. Thanks a lot!

Using: KDE 3.5.7 and Amarok 1.4.4

Report

GregKNicholson

13 years ago

Using Wiki-Lyrics 0.11.3 with Amarok 1.4.6 ("using KDE 3.5.6") on Ubuntu 7.10, I get:
Quote:private method `gsub' called for nil:NilClass
/usr/lib/ruby/1.8/cgi.rb:342:in `escape'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/lyrics_LeosLyrics.rb:40:in `build_song_add_url'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/lyrics.rb:95:in `normalize_lyrics_data'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/lyrics.rb:105:in `normalize_lyrics_data'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/lyrics.rb:180:in `lyrics_direct_search'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/lyrics.rb:333:in `lyrics_full_search'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:191:in `lyrics_full_search'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:189:in `each'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:189:in `lyrics_full_search'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:98:in `on_fetch_lyrics'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:258:in `run_worker'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:243:in `loop'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:243:in `run_worker'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:200:in `main'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:197:in `initialize'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:197:in `new'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:197:in `main'
/home/greg/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:285
Ta

Report

XazZ

13 years ago

If you get the following error, I think I got a temporary solution:
undefined method `build_google_feeling_lucky_url' for LyricsPlugins::AmarokSing365:Class

Disable Sing365 as lyrics-site and restart amarok -> after that the script works for me again

Report

stifi

13 years ago

I confirm to this. But I think it is sufficient to restart the lyrics script after disabling sing365.
Thanks for the temporary solution.

Report

pedroghandi

13 years ago

yep it works. Now how to make the submition button work? it opens a page on /home/pedro/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/amarok/

The login works fine (at least it says login successfully )

i've tried to read the source files but could figure out where are those buttons defined...

Report

Conqueror

13 years ago

Is there any way to get lyrics from Dark Lyrics and Metal Archives?

Links for these sites:
http://www.darklyrics.com/
http://www.metal-archives.com/

Thanks in advance :).

Report

lazyboy

13 years ago

i keep getting errors, like the one above or this:
Quote:private method `gsub' called for nil:NilClass
/usr/lib64/ruby/1.8/cgi.rb:342:in `escape'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/lyrics_LeosLyrics.rb:40:in `build_song_add_url'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/lyrics.rb:95:in `normalize_lyrics_data'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/lyrics.rb:105:in `normalize_lyrics_data'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/lyrics.rb:180:in `lyrics_direct_search'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/lyrics.rb:333:in `lyrics_full_search'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:191:in `lyrics_full_search'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:189:in `each'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:189:in `lyrics_full_search'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:98:in `on_fetch_lyrics'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:258:in `run_worker'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:243:in `loop'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:243:in `run_worker'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:200:in `main'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:197:in `initialize'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:197:in `new'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:197:in `main'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:285

Report

lazyboy

13 years ago

i keep getting errors, like the one above or this:
Quote:private method `gsub' called for nil:NilClass
/usr/lib64/ruby/1.8/cgi.rb:342:in `escape'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/lyrics_LeosLyrics.rb:40:in `build_song_add_url'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/lyrics.rb:95:in `normalize_lyrics_data'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/lyrics.rb:105:in `normalize_lyrics_data'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/lyrics.rb:180:in `lyrics_direct_search'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/lyrics.rb:333:in `lyrics_full_search'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:191:in `lyrics_full_search'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:189:in `each'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:189:in `lyrics_full_search'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:98:in `on_fetch_lyrics'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:258:in `run_worker'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:243:in `loop'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:243:in `run_worker'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:200:in `main'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:197:in `initialize'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:197:in `new'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:197:in `main'
/home/mikko/.kde3.5/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:285

Report

gmcgmc

13 years ago

Hi, I have a very similar error using 0.11.3

Quote:end of file reached
/usr/lib/ruby/1.8/rexml/source.rb:153:in `readline'
/usr/lib/ruby/1.8/rexml/source.rb:153:in `initialize'
/usr/lib/ruby/1.8/rexml/source.rb:16:in `new'
/usr/lib/ruby/1.8/rexml/source.rb:16:in `create_from'
/usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:130:in `stream='
/usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:107:in `initialize'
/usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:8:in `new'
/usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:8:in `initialize'
/usr/lib/ruby/1.8/rexml/document.rb:190:in `new'
/usr/lib/ruby/1.8/rexml/document.rb:190:in `build'
/usr/lib/ruby/1.8/rexml/document.rb:45:in `initialize'
/home/peppe/.kde/share/apps/amarok/scripts/wiki_lyrics/utils/xmlhash.rb:57:in `new'
/home/peppe/.kde/share/apps/amarok/scripts/wiki_lyrics/utils/xmlhash.rb:57:in `read'
/home/peppe/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:255:in `read_config'
/home/peppe/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:80:in `on_start'
/home/peppe/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:199:in `main'
/home/peppe/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:197:in `initialize'
/home/peppe/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:197:in `new'
/home/peppe/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:197:in `main'
/home/peppe/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:285/usr/lib/ruby/1.8/rexml/source.rb:153:in `readline': end of file reached (EOFError)
from /usr/lib/ruby/1.8/rexml/source.rb:153:in `initialize'
from /usr/lib/ruby/1.8/rexml/source.rb:16:in `new'
from /usr/lib/ruby/1.8/rexml/source.rb:16:in `create_from'
from /usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:130:in `stream='
from /usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:107:in `initialize'
from /usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:8:in `new'
from /usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:8:in `initialize'
from /usr/lib/ruby/1.8/rexml/document.rb:190:in `new'
from /usr/lib/ruby/1.8/rexml/document.rb:190:in `build'
from /usr/lib/ruby/1.8/rexml/document.rb:45:in `initialize'
from /home/peppe/.kde/share/apps/amarok/scripts/wiki_lyrics/utils/xmlhash.rb:27:in `new'
from /home/peppe/.kde/share/apps/amarok/scripts/wiki_lyrics/utils/xmlhash.rb:27:in `write'
from /home/peppe/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:269:in `write_config'
from /home/peppe/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:88:in `on_quit'
from /home/peppe/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:220:in `main'
from /home/peppe/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:285

Thank you,
Peppe

Report

11 years ago

Version 0.13.4
- [Fix] update LyricWiki plugin to match site change
- [Fix] update Jamendo plugin to match site changes

Version 0.13.3
- [Change] search dcop program on predefined locations if not found in PATH (*)
- [Fix] update Sing365 plugin to match site changes
- [Fix] bug in Jamendo plugin removed line break from lyrics

(*) Fixes the script when using Amarok 1.4 on KDE4 with Gentoo (and probably other distros too)

Version 0.13.2
- [New] the script can now spawn threads to handle Amarok messages
- [New] added option to disable using threads (Ruby threads are not battery/power friendly...)
- [New] removed all unnecessary usage of threads (parsing Amarok messages, Tk GUI backend)
- [Fix] check if song page exists before attempting to submit it (wiki plugins)
- [Fix] relogin when session expires (wiki plugins)
- [Fix] parsing of suggestions in wiki plugins
- [Fix] update Dark Lyrics plugin to match site changes
- [Fix] update Jamendo plugin to match site changes
- [Fix] update Lyrics Download plugin to match site changes
- [Fix] update Seek Lyrics plugin to match site changes
- [Change] replaced NotPopular.com plugin with LoudSon.gs plugin (NotPopular.com site lyrics now point to LoudSon.gs)
- [Change] removed Lyrc plugin as site has been down for more than a month
- [Change] removed Baidu MP3 plugin as site no longer provides lyrics

12345678910
Be the first to comment
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.13.4
updated Mar 12 2009
added Feb 11 2006
downloads 24h
1
mediaviews 24h 0
pageviews 24h 5
System Tags addon