Image 01
profile-image

berkowitz

Vladimir Brkic Belgrade, Serbia
Amarok 2.x Scripts
Ultimate Lyrics

Amarok 2.x Scripts 138 comments

Score 51%
51 Likes
49 Dislikes
Jul 26 2010
Hi,

I can't include musicas.mus.br because site's URL doesn't contain artist and title strings. Only site's which URL contains those strings can be searched by UL. - Jul 26 2010
Hi, I had a similar idea, but it was impossible to implement inside script plugin. You can suggest the idea to Amarok developers, since player (and not script) is responsible for handling suggestions. - Apr 11 2010
UL doesn't have anything with the bug, because none of a script code is executed when script manager is displayed.
However, you can try to do reset all Amarok settings (I'm not sure if this will help):
1. stop Amarok
2. rename ~/.kde/share/apps/amarok/ to ~/.kde/share/apps/amarok2/
3. create new empty folder ~/.kde/share/apps/amarok/
4. copy ~/.kde/share/apps/amarok2/scripts to ~/.kde/share/apps/amarok/
5. start Amarok

If this doesn't help restore Amarok settings:
1. delete ~/.kde/share/apps/amarok2/
2. rename ~/.kde/share/apps/amarok2/ to ~/.kde/share/apps/amarok/

Here is a report which say the bug will be fixed in 2.3.1 https://bugs.kde.org/show_bug.cgi?id=225557 - Apr 11 2010
Yes, reloading the page may results in duplicate posts.
Now the bug. Can you add the following line at start of ~/.kde/share/apps/amarok/scripts/ultimate_lyrics/json.js and restart Amarok.
var JSON = JSON || {};
I has recently updated json.js from http://www.json.org and that could cause the bug. - Mar 27 2010
Characters / and ? are omissions, and I will fix this. () is feature since text inside () is usually just random description and is balk for searching. But Ok, I will add a checkbox for () in tag adjustments. - Feb 24 2010
I has just saw the bug in my Kubuntu 9.10 and it looks like http://bugs.kde.org/show_bug.cgi?id=227153. It's related to KDE 4.4 (khtml). I think Fedora have a patch for it already. - Feb 17 2010
I has just added zeneszoveg.hu. The site can't be searched by URL so you can use it only in combination with google search. However, to add new site it's necessarily to do 3 things:

1. create descriptor for site in sites.js (extract rule, URL pattern, encoding, title pattern ...) Alternatively to extract rule, you can define reply function to extract lyrics from a HTTP reply. Maybe other descriptors in sites.js can give you idea what you have to do. There is also short help at start of the file.

2. register the site in main.js

3. configure url filter for google search from configuration dialog or in main.js

Good luck! - Feb 17 2010
The bug is fixed now, but I'm not sure that google is finding a valid url for stixoi.info. - Feb 08 2010
Unfortunately not. stixoi.info doesn't support searching by URL, so the site can't be searched automatically by Ultimate Lyrics (this is reason why you can't enable searching for the site). However, if google finds valid URL, you can click on one of the suggestions. - Feb 03 2010
Great news!
The patch makes sense, but since I can't reproduce the bug myself, I can't test the patch, so I have to ask. Does Amarok just stopped crashing, or script is working now properly? Btw, I would never try this. - Jan 27 2010
I have no idea where is the problem right now. Could you post output log (last 10 ~ 15 lines) from amarok --debug? - Jan 09 2010
Disabling a running script is very easy from Tools->Script Manager. Amarok caches lyrics for each song in its internal mysql database, and that is the reason why use still see old lyrics fetched with LyricWiki. You can manually clear the cache if you delete database folder ~/.kde/share/apps/amarok/mysqle. Be aware that amarok keeps other informations (like local collection, ratings...) in the database and that deleting the folder would "reset" the player. - Dec 29 2009
Reason why amarok crashed in your system is a broken qtscriptbindings package. The log is saying that amarok crashed while loading a qtscriptbinding library.
The bug should be reported to distro maintainers. This is actually the most common reason for crashing amarok caused by a script. - Dec 10 2009
Thanks for the patch. It's good to see that script can work on qt 4.6. I will include the patch in next version.
- Nov 25 2009
Fixed now (again). Thanks for the report. Number of the "special character" bugs is infinitive, and I can't find all of them myself.

Btw, any idea of tag transformation that enlarge yield is welcome. - Nov 24 2009
I think this problems appeared before in a beta version of Amarok 2.2. This bug doesn't have anything with the script. A lyric script is basically responsible only for content of lyrics applet. - Nov 21 2009
I love darklyrics but it is hard (impossible) to include the site. This had been discussed before anyway.
Quote:
Unfortunately, it is hard to include darklyrics since they don't contain song title in url.

An additional aggravating factor is that they display lyrics for a whole album in a single page. - Nov 10 2009
In current realise (1.75) there is a option "replace & with and". Deactivate the option and test the problematically song. Let me know if it is working now. - Nov 10 2009
Will be fixed by next release. Btw, I have just figured out how to set padding using StyleSheet. - Nov 04 2009
This is a bug which will be fixed soon. Thanks for the report. - Nov 04 2009
Thanks for the hint. I agree basically but there is a complication with radio buttons which force using group boxes. - Nov 04 2009
I'm pleased you like it since I was using Lyrix previously, and first versions of Ultimate Lyrics were much like Lyrix. One of goals was to incorporate ideas from various lyric scripts and create really powerful one. - Sep 30 2009
Suggestion for metrolyrics is accepted, and the site will be included in next version. Unfortunately, it is hard to include darklyrics since they don't contain song title in an url. - Sep 09 2009
see the bug http://bugs.kde.org/show_bug.cgi?id=206495.

However since it get fixed you can play with CSS. Here is what you can do:
1. in lyrics.js go to line 165 (or just search for </head>)
2. before </head> insert the following css code:
Quote:
<style type="text/css">body{color: purple; background-color: silver} a:link{color: GhostWhite; text-decoration: none}</style>

3. change colours according to CSS

This works only in rich text mode (when the script returns an html page)
- Sep 08 2009
see the bug http://bugs.kde.org/show_bug.cgi?id=206495.

However since it get fixed you can play with CSS. Here is what you can do:
1. in lyrics.js go to line 165 (or just search for </head>)
2. before </head> insert the following css code:
Quote:
<style type="text/css">body{color: purple; background-color: silver} a:link{color: GhostWhite; text-decoration: none}</style>

3. change colours according to CSS

This works only in rich text mode (when the script returns an html page)
- Sep 08 2009
Oh, I think I have just found where is the bug. It is very ugly bug in lyrics.js which affects only new users of the script (users who install script for the first time).

Fix:
go to lyrics.js, line 341, function String.prototype.unpack and insert new line:
if (this == "") return undefined;

If script starts working, you can disable previously enabled openSUSE patch by reverting patch.js to initial code.
- Sep 06 2009
At start of patch.js you will find a commented line:
const INCLUDE_PATCH_FOR_OPEN_SUSE = true;
Try to uncomment the line, restart amarok and report if script is working. It looks similar to a bug in openSUSE. The bug is related to json, which I had just took over. Btw, amarok 2 is a great player. Do not retreat yet. - Sep 06 2009
In README there is a short guide about adding new site. Basically you need to write one function that extract valid text from HTML in qtscript language (javascript). Since allreggaelyrics.com has been added in new version, you won't need to write anything.
If google search suggests others sites instead of this one, and you want to use this one, you should change search domain for google search (in configuration dialogue). - Aug 17 2009
My fault. Directly is wrong word. I meant automatically.
You will see a list of sites (list of URLs coloured in blue), and one of sites will be www.stixoi.info.
Then you will have to click the URL to show lyrics. This is because the site doesn't use artist-title in URL
and can't be easily queried by the script, so the script use google.com for that job (this is an idea from another script btw).
All of this is inside the player of course.
- Aug 12 2009
There is a bug in the current version that disables the site (and a lot of others). In the next version the site will work, but only through google search (not directly). - Aug 11 2009
The Last version is 1.2. You can check installed version in Script Manager. It looks like the cross distro issue is in opensuse's qtscriptbindings. I can't make it work because I don't have opensuse on my machine. - Aug 05 2009
There is no threshold. When script doesn't find anything, it displays suggestion links from google.com. You can try suggestions by clicking on it. Note that script use artist and title tags inside file, and not file name. Non letter and non number characters can cause miss in searching sometimes. - Aug 05 2009
It's been tested on ubuntu's 2.0.2 and fedora's 2.1.1. I'm not completely sure why it's not working on opensuse's. Check out the new version, and report if it still doesn't work. thanks for the report anyway. - Aug 04 2009
Using album name in search would give more restricted results, and would generally degrade script usefulness. I have just noticed another function in api which solves current problem with auto export. Also in plan is to use that exported file as source for later search (as suggested). But I'm still not sure auto export is good idea. It is quite advanced use case, and can easily confuse ordinary user. - Aug 01 2009
There is a problem with lyrics engine in amarok. Script always gets index of previous track, and can't figure out valid file name. Currently script exports lyrics using file name of previous file, and because of that problem option of auto exporting is not enabled. - Jul 31 2009