GOO lyrics

Amarok 2.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

1
Score 57%
Description:

Lyrics Workshop, the evolution of GOO lyrics is available at:

http://www.kde-apps.org/content/show.php?content=101465

Another search lyrics script for Amarok 2 specializes in Asian music but also with Western music support.

Supported servers are:

1) lyricwiki.org (Western music).
2) music.goo.ne.jp (Japanese music).
3) cix.co.kr (Korean music).
4) mp3.sogou.com (Chinese music).
5) www.evesta.jp (Japanese music):

Plans post 1.0 version are:

1) A system for managing suggestions for misspelled names and titles.
2) A system for managing westernized Asian names (in study).
3) Configuration form with a system to prioritize servers and max number of simultaneous connections.
4) Send lyrics to STDIN plasmoid enabled. Currently this feature is disabled for a couple of display bugs in it and because this plasmoid does not support DBUS.
5) A system for select a result when more than one servers has the lyrics

With the release of 0.4 version I covered my initial requirements to support my music library so this is the first release candidate of version 1.0. Future improvements will depend largely on the popularity of this script.

I would appreciate any feedback that the script works correctly in code pages other than UTF-8.

I'm open to add new servers to the users request.

Last changelog:

10 years ago

v 0.6 (09/03/04) - somethin' stupid release
-----------------------------------------------
- New option in "Tools" menu called GOO get lyrics to launch "Title - Artist" input dialog. If you assign a shortcut you can launch GOO search with it. I found it really useful and more comfortable than double clicking in the lyrics refresh icon :).
- A few code to avoid wrong lyrics storage with "Title - Artist" input dialog if song changed and dialog it's not closed.
- Minor code refactoring.
- Last release candidate previous to version 1.0. A full solution for "Title - Artist" input dialog problem when song changes will be available in version 2.0 of this script when I have learn a few of Qt and a few of Javascript.

v 0.5 (09/03/01) - quick fix release
------------------------------------
- BUG: evesta.jp engine could download the lyrics of another song instead of the correct song when both Title and Artist are Western names.
- GOO is now the highest priority server because, apparently, evesta.jp has more lyrics wrong. Prioritization is now (from mayor to minor): GOO, evesta.jp, CIX, LyricWiki.org and Sogou.

v 0.4 (09/03/01) - try it again release
---------------------------------------
- Added an "input dialog" for alter "Title" and "Artist" when search fails. Useful for correcting errors in writing or changing names in other alphabets. This option is disabled by default and must be activated from the configuration options.
- Configuration form located in "Settings".
- Support for "Instrumental" music if "input dialog" is enabled.

v 0.3 (09/02/26) - chinese release
----------------------------------
- Added support to mp3.sogou.com server.
- Added support to www.evesta.jp server.
- Minor improvements in html to text conversion.
- Better detection of servers with entries but without lyrics.
- Prioritization in this version is (from mayor to minor): evesta.jp, GOO, CIX, LyricWiki.org and Sogou.

v 0.2 (09/02/24) - korean release
---------------------------------
- Engine refactoring to achieve better support for multiple servers.
- Added support to cix.co.kr server.

v 0.1 (09/02/22) - first release
--------------------------------
- Added support to lyricwiki.org and music.goo.ne.jp servers.
- Basic functionality: search, download and store lyrics.

sanfanling

9 years ago

Hi, I find it seems that it could not use lyrics cache well, the same as workshop

Report

C

eusonig

9 years ago

If you told me song title and artist name I can try to trace the bug.

Report

sanfanling

9 years ago

every track here has this problem. If the track never played before, the auto search works well, next time the track plays, the cached lyrics would not show, just say "not found", but search lyrics manuly, it works well.

Report

C

eusonig

9 years ago

Do you have the same problem with manual search?
I must change search engine and add an option to force search server.

Report

sanfanling

9 years ago

Hi eusonig, I use Amarok-2.1, I find that sometines goo lyrics could search the correct lyrics and shows the lyrics in amarok, but just 1 second, then say "lyrics was not found", it happens in auto search situation when change tracks. If I use tool - goo lyrics, it could work well.

BTW, I will update lrcShow-X in a few days, you could check it in my svn (www.sanfanling.cn/svn/lrcShow-X/branches/frank/lrcShow-X), in this svn version, app only allows only one instance. When app is launched, it would create a lock file (~/.lrcShow-X/lock), when quits, app would del it. If another instance is launched, and detect the lock file, it would be failed. If it's useful for your starter.

Report

ajisai

10 years ago

Thank you so much, this is the exact kind of script I have been looking for in a long time. Unfortunately, even though I was able to install your script and use it, the lyrics that I get go from readable Japanese text to this kind of stuff within a split second of being displayed:

http://i43.tinypic.com/jt1442.png

Do you have an idea of what the problem might be?

Report

C

eusonig

10 years ago

These are html encodings of UTF characters so there could be a encoding related problem.

What version of Amarok are you using and what is the character encoding of your system?

On the other hand, from what server has been fetched the lyrics?

I try the song and GOO lyrics can download lyrics well from "http://music.goo.ne.jp/lyric/LYRUTND16854/index.html".

Report

ajisai

10 years ago

I'm using Version 2.0.1

Those lyrics were fetched from goo.

I'm not exactly sure what character encoding I am using... Perhaps UTF-8, but I'm not sure how to check it. I'm running Amarok 2 without ever having to download KDE in full. I will install that and see if that fixes the problem. I find it odd that it displays the lyrics perfectly for half a second then breaks it down to HTML encodings.

Or maybe there is something I'm overlooking?

Report

C

eusonig

10 years ago

Can you try http://www.kde-apps.org/content/show.php?content=101465 and tell me if it works well?

Report

C

eusonig

10 years ago

I'm using Amarok 2.0.2 but I don't detect any problem with Amarok 2.0.1. Please note that I'm using Qt 4.5 and could be a encoding problem with Qt 4.4.

Open konsole and type:

locale

so you can can view your system encoding and language.

On the other side, launch qtconfig so you can your Qt version in Help -> About Qt menu.

Report

ajisai

10 years ago

Here's what I got

harold@ajisai:~$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

That might be the case with 4.4 since that's what I'm using... (4.4.3)

I tried your new script, which looks fantastic by the way, but it has the same problem as this script when it comes to displaying the lyrics correctly!

Report

C

eusonig

10 years ago

By the way with "Lyrics Workshop" all the downloaded lyrics are stored in ~/.kde4/share/apps/amarok/scripts/lyrics_workshop/cache/lyrics as html files (artist_album_track_title.html).

Please note that in your system KDE configuration files could be in ~/kde/...

Could you check if lyrics are downloaded correctly to rule out totally that this is a problem downloading the lyrics and to confirm that is a display problem.

Report

C

eusonig

10 years ago

Well, I think I got it.

In three different systems in which I have test this code, the html encoding is always with "&" plus "#" as I can see it was a mistaken assumption and my function html2text() fails miserably.

To help with the fix, please send me the html cache file to "kde at aynoa dot net".

Report

C

eusonig

10 years ago

Well, I think I got it.

In three different systems in which I have test this code, the html encoding is always with "&" plus "#" as I can see it was a mistaken assumption and my function html2text() fails miserably.

To help with the fix, please send me the html cache file to "kde at aynoa dot net".

Report

C

eusonig

10 years ago

Well, I think I got it.

In three different systems in which I have test this code, the html encoding is always with "&" plus "#" as I can see it was a mistaken assumption and my function html2text() fails miserably.

To help with the fix, please send me the html cache file to "kde at aynoa dot net".

Report

ajisai

10 years ago

Well, it looks like it may be a download problem! I pulled up one of the HTML files in firefox, and this what I got:

http://i42.tinypic.com/72gmqt.png

It might help to add that just the downloaded lyrics don't display correctly--the 音楽 at the bottom displays perfectly fine:

Lyrics Workshop additional information:
fetched from: goo 音楽
url lyrics http://music.goo.ne.jp/lyric/LYRUTND62086/index.html
url artist http://music.goo.ne.jp/lyric/artist.php?n=JAY%27ED


I tried changing the storage method to something other than "xml, html" but it doesn't save the preference when I close the window. There's no confirm button visible either:

http://i39.tinypic.com/sov8nq.png

The window overall looks a little odd, I even tried tabbing through the options and resizing the window to find if there was an "OK" button.

Report

C

eusonig

10 years ago

There is a configuration option in "Lyrics Workshop" called "Storage method" with four options: "xml", "html", "xml, html" and "html, xml".

Can you try if one of this options works for you?

Report

C

eusonig

10 years ago

GOO lyrics born to fill my need to get the lyrics of my Japanese & Korean music and, as far as I'm concerned, that goal has been achieved.

However, with the daily new ideas have emerged, some quite ambitious, exceeding the initial goal of this tiny project.

For this reason I have decided to cancel this project and begin a general purpose one that will be available in a couple of weeks.

GOO lyrics development will be ended with 1.0 release but I will maintain the script for some time and fix serious bugs.

The new project is in alpha stage but new and excited features are implemented:

- Lyrics translation, using Google.
- Kanji to kana conversion, using Tatoeba.org.
- Hangul romanization.
- Local cache of downloaded data.
- Name equivalences (currently only a text file).

and I working on:

- Configuration dialog and custom server prioritization.
- Cache manual edition for retouching translations and conversions.
- Equivalences interface.

and I looking for:

- A service to romanice Chinese.

Report

10 years ago

v 0.6 (09/03/04) - somethin' stupid release
-----------------------------------------------
- New option in "Tools" menu called GOO get lyrics to launch "Title - Artist" input dialog. If you assign a shortcut you can launch GOO search with it. I found it really useful and more comfortable than double clicking in the lyrics refresh icon :).
- A few code to avoid wrong lyrics storage with "Title - Artist" input dialog if song changed and dialog it's not closed.
- Minor code refactoring.
- Last release candidate previous to version 1.0. A full solution for "Title - Artist" input dialog problem when song changes will be available in version 2.0 of this script when I have learn a few of Qt and a few of Javascript.

v 0.5 (09/03/01) - quick fix release
------------------------------------
- BUG: evesta.jp engine could download the lyrics of another song instead of the correct song when both Title and Artist are Western names.
- GOO is now the highest priority server because, apparently, evesta.jp has more lyrics wrong. Prioritization is now (from mayor to minor): GOO, evesta.jp, CIX, LyricWiki.org and Sogou.

v 0.4 (09/03/01) - try it again release
---------------------------------------
- Added an "input dialog" for alter "Title" and "Artist" when search fails. Useful for correcting errors in writing or changing names in other alphabets. This option is disabled by default and must be activated from the configuration options.
- Configuration form located in "Settings".
- Support for "Instrumental" music if "input dialog" is enabled.

v 0.3 (09/02/26) - chinese release
----------------------------------
- Added support to mp3.sogou.com server.
- Added support to www.evesta.jp server.
- Minor improvements in html to text conversion.
- Better detection of servers with entries but without lyrics.
- Prioritization in this version is (from mayor to minor): evesta.jp, GOO, CIX, LyricWiki.org and Sogou.

v 0.2 (09/02/24) - korean release
---------------------------------
- Engine refactoring to achieve better support for multiple servers.
- Added support to cix.co.kr server.

v 0.1 (09/02/22) - first release
--------------------------------
- Added support to lyricwiki.org and music.goo.ne.jp servers.
- Basic functionality: search, download and store lyrics.

product-maker iven Jun 25 2011

product-maker updatedb Jun 25 2011

File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
0.6
updated Mar 22 2009
added Feb 22 2009
downloads today
1
page views today 3
System Tags addon