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

dotancohen

14 years ago

After installing Ruby the script worked. Thanks.

Report

Mikage

14 years ago

hi,
any chance you could add support for notpopular.com/lyrics?

thanks for your efforts!
Andrea

Report

C

attendant

14 years ago

i'll check this when i can (which won't be until after releasing v0.8)

Report

zumbi

14 years ago

I use "Manually specify the proxy settings" together with a list of sites the proxy should be used for. The Lyriki script isn't happy with that configuration and reports "Can't connect to the internet (check your proxy settings)".

Report

bearcatsandor

14 years ago

Wow! Using 0.7, i find this has got to be the coolest script ever. I've loved the idea of the lyrics wiki and you have made it easy to submit tons of lyrics. With your work, they lyriki site with have a usable collection of lyrics in no time.

One question. The pop-up for the lyrics submission seems to be a tk window rather then a qt window. Any chance of a qt one?

Report

C

attendant

14 years ago

there's already a qt version (and also a gtk one). if you're seeing a tk window it's because you don't have nor qtruby nor ruby-gtk installed.

Report

Dhraakellian

14 years ago

How does this script handle redirects?

[[Artist1:Song (Feat. Artist2)]] redirects to [[Artist1:Song]], but the script still tries to submit an entry for [[Artist1:Song (Feat. Artist2)]].

Is there any way to fix this?

Report

C

attendant

14 years ago

i thought i had fixed this in the last release... are you using version 0.6.1?
anyway, if you tell me the page that's giving you troubles, i'll take a look at it.

regards

Report

Dhraakellian

14 years ago

Most of Blue_Man_Group:The_Complex_(2003), actually.

For example, Blue_Man_Group:The_Complex_(feat._Peter_Moore) redirects to Blue_Man_Group:The_Complex, but the script still tries to submit lyrics for it.

Report

Dhraakellian

14 years ago

addendum: this is with lyriki-lyrics 0.7 and recent svn of amarok.

Report

C

attendant

14 years ago

From what your written it seems the problem is not related to redirect pages but to the fact that this particular page (Blue_Man_Group:The_Complex_(feat._Peter_Moore)) do not follow the "every word in a page title must have it's first letter in uppercase".
In your case for example, the script will first look for Blue_Man_Group:The_Complex_(Feat._Peter_Moore)
which is the best guess the script can make on what the page title must be (note the different capitalization in 'feat.'). That page doesn't exist so the script will fail at finding it (duh!) and attempt to perform a case insensitive search using the wiki search. If any of the returned results matches (case insensitively) the target it will conclude the page exists otherwise it will conclude it doesn't. This works well in most cases but sometimes the wiki search behave strangely such as in this case where searching 'Blue Man Group The Complex (Feat. Peter Moore)' won't shield any result (as a side note, no case variation of that string returned any result in my tests...).
Hopefully this illustrates why it's important for every word in a title page to be capitalized.

Report

Dhraakellian

14 years ago

gotcha

Report

amarok

14 years ago

Hi, I've just tried the latest version of your script. I've got one question:

I understand your lyrics script is a "meta" script, capable of querying multiple sites. So why do you list all the separate scripts in the Script Manager (executables), instead of listing just one script? I find this very confusing. In fact I had no idea which script to start.

Additionally, you install a script names "Lyrc", which conflicts with our bundled Lyrc script.

(This is markey posting, was too lazy to relogin)

Report

C

attendant

14 years ago

Hi Mark. I'm a bit surprised that you ask since you were the last to change the lyrics interface... (remember? did it against my advice?) Anyway... some features depend on which script is running since they are hardcoded in the spec file of that script (such as the 'add missing lyrics' feature or the name of the site displayed in the lyrics browser) so having separate scripts is a necessity (which, additionally, provides the flexibility to do things like 'Lyriki Submiter')
You can run any of the scripts, the site of the running script will allways be the one queried first and, if the lyrics can't be found by any means, will be the one whose suggestions are shown (also note that when a user chooses a suggestion all that the script receives is what's supposed to be a URL, so you have to know ahead which script will be able to parse it -though one could probably just add anything needed as part of that "URL").
Now, what I really don't understand is how using these scripts could be any more confusing than using any other one... from a user POV they work pretty much the same, only difference being that, when configured to do so, they will query other sites as well.

Report

amarok

14 years ago

You write "they all work pretty much the same". Well that's the point, so why show them all? As far as I can see, your script shows a config dialog anyway, where you can select which sites to use.

I'm convinced that 90% of the users don't care (and don't want to care) about specific sites. The user just wants a script that gets him the best possible choice of lyrics, in the easiest fashion. In other words, a solution that "Just Works".

Apart from that I think your script(s) is great, and technically well implemented. The code is a joy to look at.

Report

C

attendant

14 years ago

mark, don't take this the wrong way, but you either have to work on your reading comprehension skills (since you entirely missed my last post...) or you are just being irespectful to someone taking the time to read and answer your comments. (how about you just start with that?)

sergio.

Report

amarok

14 years ago

1) Oh well. Seeing that you refuse to comply with our advice, we might have to change the Script Manager to only list one script per script package.

2) You still have not answered: Why do you install a script named Lyrc, which conflicts with the bundled Lyrc script? The Script Manager cannot handle this cleanly, so I reckon we will have to add an additional check to prevent installation of such packages.

--
Mark

Report

C

attendant

14 years ago

you had not asked me to comply with anything, until know (nor I have refused to anything -yet). anyway, if that was what you wanted (as it is clear now), you should have said so instead of pretending me to do something you didn't have the guts to ask, by using ways of a 13-year-old.
you asked me why the scripts are released the way they are and so I answered (clearly not what you wanted). i'm sorry i didn't read your post between the lines... i usually give people the benefit of the doubt. about why do i bundle a script which conflicts with Lyrc, well, that's simply because i haven't realized that since i always uninstall the scripts i don't use. not answering that was an omission for which i apologize, even though you don't seem to know the difference between an unintentional omission and an intentional one (or you just enjoy abusing the last type).

sergio.

p.s.: i'm done answering this b.s.

Report

eean

14 years ago

No, we seriously don't understand what your point is.

Report

davepb

14 years ago

Best Lyrics script out there.

Is there any reason that it keeps leaving a lyrics.log file on my desktop?

Thanks

Dave

Report

C

attendant

14 years ago

it's a bug in the terra lyrics script.
please, replace the log_file() method contents with this:
return LOG ? '$HOME/Desktop/lyrics.log' : nil
...or wait til' i upload a fix

Report

davepb

14 years ago

Thanks. All sorted :)

Report

hurra

14 years ago

Hi

nice script ;)

But i get strange popups:
http://img127.imageshack.us/img127/8914/amarokerror10rg.png
http://img127.imageshack.us/img127/8831/amarokerror25fn.png
http://img127.imageshack.us/img127/6899/amarokerror32nn.png



And it would be nice, to see where the lyrics actually got fetched from.

Cu hurra

Report

C

attendant

14 years ago

it seems there's a bug in the lyrix.at script... i'll see what i can found.
about showing where the lyrics were fetched from, it's not possible with the current lyrics scripts interface. the site of the currently running script it's always the one displayed.

regards

Report

Berkout

14 years ago

I had this script installed a few weeks ago, but it got uninstalled during an upgrade I think. I juste downloaded and installed the new 0.3 version, started it, and I got this nice error message:

/home/berkout/.kde/share/apps/amarok/scripts/lyriki-lyrics/gui.rb:891:in `show_lyrics_config_dialog': undefined method `downcase' for nil:NilClass (NoMethodError)
from /home/berkout/.kde/share/apps/amarok/scripts/lyriki-lyrics/amarok_lyrics.rb:155:in `amarok_on_configure'
from /home/berkout/.kde/share/apps/amarok/scripts/lyriki-lyrics/amarok_lyrics.rb:178:in `amarok_lyrics_exec_loop'
from /home/berkout/.kde/share/apps/amarok/scripts/lyriki-lyrics/lyrics_lyriki.rb:81:in `amarok_lyrics_exec_loop'
from /home/berkout/.kde/share/apps/amarok/scripts/lyriki-lyrics/lyrics_lyriki.rb:91

Since I know nothing about programming, I can't even figure what it means... Can anyone help??

Thanks ;)

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
0
mediaviews 24h 0
pageviews 24h 6
System Tags addon