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

hash87

12 years ago

0.12.8 works like a charm at the moment. And im pretty sure that it downloads lyrics from web.

When i choose lyrics i get "Downloading lyrics" and after few seconds text appears. I even added to my playlist songs that i haven't listened yet.

Report

C

attendant

12 years ago

please, try version 0.12.10 and tell me if it's working now.

Report

hardlick

12 years ago

when start Wiki-Lyrics this messages appears:
The script 'Wiki-Lyrics' exited with error code: 1
Error loading Qt3 GUI backend: no such file to load -- Qt
Error loading Qt4 GUI backend: no such file to load -- Qt
bad URI(is not URI?): http://username:password@proxyserver:port
/usr/lib/ruby/1.8/uri/common.rb:436:in `split'
/usr/lib/ruby/1.8/uri/common.rb:485:in `parse'
/home/hardlick/.kde/share/apps/amarok/scripts/wiki_lyrics/utils/http.rb:90:in `parse_uri'
/home/hardlick/.kde/share/apps/amarok/scripts/wiki_lyrics/utils/http.rb:66:in `get_url_proxy_settings'
/home/hardlick/.kde/share/apps/amarok/scripts/wiki_lyrics/utils/http.rb:99:in `fetch_page_get'
/home/hardlick/.kde/share/apps/amarok/scripts/wiki_lyrics/lyrics.rb:123:in `fetch_lyrics_page'
/home/hardlick/.kde/share/apps/amarok/scripts/wiki_lyrics/lyrics.rb:168:in `lyrics_direct_search'
/home/hardlick/.kde/share/apps/amarok/scripts/wiki_lyrics/lyrics.rb:357:in `lyrics_full_search'
/home/hardlick/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/pluginsmanager.rb:166:in `lyrics_full_search'
/home/hardlick/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/pluginsmanager.rb:164:in `each'
/home/hardlick/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/pluginsmanager.rb:164:in `lyrics_full_search'
/home/hardlick/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsscript.rb:116:in `on_fetch_lyrics'
/home/hardlick/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsscript.rb:288:in `run_worker'
/home/hardlick/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsscript.rb:266:in `loop'
/home/hardlick/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsscript.rb:266:in `run_worker'
/home/hardlick/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsscript.rb:222:in `exec'
/home/hardlick/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsscript.rb:219:in `initialize'
/home/hardlick/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsscript.rb:219:in `new'
/home/hardlick/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsscript.rb:219:in `exec'
/home/hardlick/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/pluginsmanager.rb:269

please someboby help

Report

C

attendant

12 years ago

do you use an internet proxy? if so, can you tell me the configuration you're using?

Report

snesbitt

12 years ago

Can someone help me diagnose why wiki-lyrics refuses to save my configuration changes? None of my configuration changes like the list of active lyric sites, logging, etc are saved.

Where are the configuration saved (filename and location). Anyway I can run the gui without Amarok in an attempt to see error conditions.

This is version 121.8, amarok 1.49, ubuntu heron.

Thanks!

Report

C

attendant

12 years ago

to run the script:
$HOME/.kde/share/apps/amarok/scripts/wikilyrics/amarok/pluginsmanager.rb
the configuration is saved in:
$HOME/.kde/share/apps/amarok/scripts-data/wikilyrics.xml

Report

staudi009

12 years ago

Hi

I have the message:
Quote:
The Script "wikilyrics.rb" terminate with Errorcode: 1
Error opening terminal: unknown


My environment is: KDE 3.5.9, Amarok 1.4.8, wiki-lyrics 0.12.8, ruby-qt 1.8 and ruby-gtk 1.8.

Any idea?

Regards, Werner

Report

C

attendant

12 years ago

you're running the wrong file. the correct entry is displayed as "Wiki-Lyrics", under the "Lyrics" category.

Report

staudi009

12 years ago

Mh, yes, i remember that i found it just odd to see it under the general scripts.
But your meaningful naming is a joke?

Report

staudi009

12 years ago

Ha ha ha ludicrous

Report

bobradu

12 years ago

When I am playing a song in Amarok and looking at the lyrics tab which normally eventually magically produces the lyrics, if no lyrics can be found, I always end with an error pop-up:

The script 'Wiki-Lyrics' exited with error code: 1

And details shows:

Error loading Qt3 GUI backend: no such file to load -- Qt
Error loading Qt4 GUI backend: no such file to load -- Qt
undefined method `normalize_lyrics_data' for #<PluginsManager:0x2aaaaca77570>
/home/bradu/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/pluginsmanager.rb:186:in `lyrics_full_search'
/home/bradu/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsscript.rb:116:in `on_fetch_lyrics'
/home/bradu/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsscript.rb:288:in `run_worker'
/home/bradu/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsscript.rb:266:in `loop'
/home/bradu/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsscript.rb:266:in `run_worker'
/home/bradu/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsscript.rb:222:in `exec'
/home/bradu/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsscript.rb:219:in `initialize'
/home/bradu/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsscript.rb:219:in `new'
/home/bradu/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsscript.rb:219:in `exec'
/home/bradu/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/pluginsmanager.rb:269

Report

C

attendant

12 years ago

thanks for reporting, it's fixed in v0.12.8.

Report

daho

12 years ago

Hello,

thanks for this great script.

Everything works fine, except that every time I have submitted a lyric, the script exits on song change. I have no clue why it does this since the script log is empty.

Oh, something else: I can't submit lyrics which I haven't got from the web. Is this supposed to be this way?

Daniel

Report

C

attendant

12 years ago

i'm not having any problems uploading content but, in any case, the logging was much improved in the last version so if you're still having problems just send me the log and i'll have a look at it (it should be non empty now).
btw, i just now understand what you meant with the last question (i must've been asleep when i first read it...). it's not so much that it's supposed to be like that, it's just that i hadn't thought about submitting the lyrics already known to amarok... i'll do it for the next release (p.s.: if this is not what you're referring to, let me know).

Report

C

attendant

12 years ago

oops... i rushed to fix a crash bug and completely forgot about this... sorry, i'll definitely do it for the next release.

Report

v6lur

12 years ago

For some strange reason, some LyricWiki redirect pages are incorrectly formatted like this (example for "A New Machine, Part 1" by Pink Floyd):
#REDIRECT '''[[Pink Floyd:A New Machine (Part 1)]]'''
The apostrophes make that exact code show up as the song's lyrics - if the redirect page doesn't have them (like it's meant to be), like this:
#REDIRECT [[Pink Floyd:A New Machine (Part 1)]]
...then everything works just fine.

This is really a fault of some wiki-writers, not the script, but still it would be really nice if it could handle those apostrophes :)
(And/Or maybe, if it isn't too dangerous, optionally/automatically correct such redirect pages?)

The above probably applies to Lyriki, too.

Report

C

attendant

12 years ago

this should be working now.

Report

v6lur

12 years ago

Could you add support for lyrics.ee?

And thanks for the script :)

Report

brat

12 years ago

I'm running ubuntu and I get an error when saving (submit) lyrics:

Error loading Qt3 GUI backend: no such file to load -- Qt
/home/miguel/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarok.rb:30: warning: Insecure world writable dir /local/share/apache-maven-2.0.8/bin in PATH, mode 040777
undefined method `code' for nil:NilClass
/home/miguel/.kde/share/apps/amarok/scripts/wiki_lyrics/wikilyrics.rb:226:in `fetch_page_edit_params'
/home/miguel/.kde/share/apps/amarok/scripts/wiki_lyrics/wikilyrics.rb:255:in `submit_page'
/home/miguel/.kde/share/apps/amarok/scripts/wiki_lyrics/wikilyrics.rb:464:in `submit_song_page'
/home/miguel/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokwikilyricsadapter.rb:208:in `wiki_process_lyrics_data'
/home/miguel/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:214:in `wiki_process_lyrics_data'
/home/miguel/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:212:in `each'
/home/miguel/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:212:in `wiki_process_lyrics_data'
/home/miguel/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:199:in `lyrics_full_search'
/home/miguel/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:189:in `each'
/home/miguel/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:189:in `lyrics_full_search'
/home/miguel/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:98:in `on_fetch_lyrics'
/home/miguel/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:258:in `run_worker'
/home/miguel/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:243:in `loop'
/home/miguel/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:243:in `run_worker'
/home/miguel/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:200:in `main'
/home/miguel/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:197:in `initialize'
/home/miguel/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:197:in `new'
/home/miguel/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amarokscript.rb:197:in `main'
/home/miguel/.kde/share/apps/amarok/scripts/wiki_lyrics/amarok/amaroklyricsmanager.rb:285


How can I solve this issue?

Report

C

attendant

12 years ago

try updating to the last version of the script.

Report

river035

12 years ago

I am running ubuntu. I would like to use the command line version as documented at the bottom of http://lyriki.com/Help:Wiki-Lyrics_Script . However, I downloaded Wiki-Lyrics and can't figure out what command to use. No ruby file in the download seems to even offer those command line options.

Are there additional files I need or configuration steps I should be doing?

Thanks a lot.

Report

C

attendant

12 years ago

the file if 'wikilyrics.rb' under 'cli' directory.
note, however, that the documentation on the wiki might be outdated.

Report

river035

12 years ago

Thanks so much! That answers my question precisely.

Report

enr1x

13 years ago

Hi! First i'd like to thank you for your great script. I love LyricWiki, and i'm a regular contributor to that site, thanks to your script. However, its interface, which used to be Qt based, shows as tk (?) in my pc. I am using Arch Linux and have no problem compiling Qt-apps. I have made a snapshot of this problem:
http://bayimg.com/gahhaAabG

Furthermore, i have a suggestion: why not an universal interface for configuring. I mean, there's a dialog everytime a component (lyricwiki, lyriki, the sources) needs a configuration. I think it would be great to have a common, single-window configuration interface. what is your opinion? Thanks in advance.

Report

C

attendant

13 years ago

Quote:Hi! First i'd like to thank you for your great script. I love LyricWiki, and i'm a regular contributor to that site, thanks to your script. However, its interface, which used to be Qt based, shows as tk (?) in my pc. I am using Arch Linux and have no problem compiling Qt-apps. I have made a snapshot of this problem:
http://bayimg.com/gahhaAabG
yes, that's the tk backend. the script is probably not detecting the qtruby bindings. are you sure you have them installed?

Quote:Furthermore, i have a suggestion: why not an universal interface for configuring. I mean, there's a dialog everytime a component (lyricwiki, lyriki, the sources) needs a configuration. I think it would be great to have a common, single-window configuration interface. what is your opinion? Thanks in advance.
i wouldn't hold my breath on that: building such a dialog it's a real pain since all scripts are detected at runtime and (a priori) all of them could have settings to show, so there would have to be a generic method to build the dialog from the gathered "widgets". Add to that 3 (or 4) different gui toolkits and things become a lot messier. i'll see if it's doable, but don't count on it.

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 4
System Tags addon