-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans (4) .- Knowledge Base (1) . 

Googlyrics2

   Beta4  

Amarok Script

Score 84%
Link:  Link
Downloads:  2356
Submitted:  Aug 9 2008
Updated:  May 7 2009

Description:

I wrote Googlyrics when I was getting sick of the low yield on existing lyrics scripts. A long time ago, I discovered a windows application (EvilLyrics) that had an interesting idea: search a search engine for lyrics, then filter them out of the page. Well, after examining pages from several lyric sites I determined they could be extracted quite easily and quite the original Googlyrics, however, I was never happy with the way Googlyrics was programmed, it wasn't modular and would only work with Amarok. Googlyrics2 is a completely modular rewrite in pure python, it's now simple to add in new lyric sites and modify it for other media players. Googlyrics2 is only the Amarok script with plugins for all the lyrics sites from the original googlyrics (and yes, they all work now and will be much easier to update due to built in mass testing features), a seprate application will later be released which will allow Googlyrics2 to work with any media player. Googlyrics2 currently supports 26 different lyrics sites and can be easily added to. Big thanks to the many people who have contributed code for the original Googlyrics and to everyone who sends me nice comments, I love to know I'm appreciated :D. Googlyrics2 now requires nothing more than a default python 2.5 installation, no more complaints on random forums about WWW::Mechanize.

PLEASE COMMENT IF YOU VOTE BAD! Also, this script is in beta so all comments are appreciated.

A new experimental pre-beta5 is out, unfortunately I don't have a copy of amarok 1.x at my disposal at the moment but I figured the community really needed this update. I hope it works. If this works it should fix the most complained about bugs (specifically encoding bugs). Major thanks goes out to grindi who has contributed much code for this release. I cannot thank you enough, I did nothing but struggle with character set issues.




Changelog:

See homepage.




LicenseGPL
(Amarok script)
(Experimental Amarok script Pre-Beta5)
Send to a friend
Subscribe
Other  Apps  from ultramancool
Report inappropriate content



goto page: prev   1  2  3  4  5 

-
.

 Bug

 
 by etechnophile on: Jan 12 2009
 
Score 50%

When I initially installed this script, if it could not find the lyrics of a song, it used to crash with a message "unboundlocalerror local variable 'outlyric' referenced before assignment". Looks like this is similar to the bug reported by qacek on Sep 26 2008.

Now (approx 2 hours later) if Googlyrics2 beta 3 can't find the lyrics of a song, it displays the last successfully found lyrics. This may be the same bug as reported by StMPA3b on Oct 8 2008.


Reply to this

-

 Re: Bug

 
 by etechnophile on: Jan 16 2009
 
Score 50%

I've got the whole error message this time. Maybe this can be of more help.

Traceback (most recent call last):
File "/home/username/.kde/share/apps/amarok/scripts/Googlyrics2/Googlyrics2.py", line 47, in <module>
a.run()
File "/home/username/.kde/share/apps/amarok/scripts/Googlyrics2/Googlyrics2.py", line 30, in run
if outlyric is None:
UnboundLocalError: local variable 'outlyric' referenced before assignment


Reply to this

-

 character bug

 
 by shizzledizzle on: Jan 20 2009
 
Score 50%

changing line 44 of Googlyrics2.py from

doc.documentElement.appendChild(doc.createTextNode(saxutils.escape(outlyric.lyrics))

to

doc.documentElement.appendChild(doc.createTextNode(saxutils.escape(outlyric.lyrics).encode('UTF-8')))

seems to have fixed the special character issue for me


Reply to this

-

 Re: character bug

 
 by ultramancool on: Jan 21 2009
 
Score 50%

Thanks, I'll encorporate this and do a release soon.


bash: Think about how stupid the average person is. Now realize that half of them are dumber than that.
quoteer: Why half?

Reply to this

-

 Re: character bug

 
 by tosszyx on: Feb 26 2009
 
Score 50%

This workaround work for me, in the Beta4.

Thanks


Reply to this

-

 amarok2 working here

 
 by mattepiu on: Feb 1 2009
 
Score 50%

Amarok2 is actually working here (amd64 gentoo),

these are my scripts:
1) lyricserver.py
http://pastebin.com/f63d55d4c

usage: put in googlyrics folder and run python lyricserver.py [port] , default port is 8801.

to test: in a browser insert url: http://localhost:8801/html+_+artist+_+title

2) main.js
http://pastebin.com/f5d20b9af

script to give to amarok 2 the ability to get lyrics from lyricserver (which must be loaded!!!!)


Reply to this

-

 Re: amarok2 working here

 
 by ultramancool on: Feb 7 2009
 
Score 50%

Great work! Do you mind if I include these in the archive?


bash: Think about how stupid the average person is. Now realize that half of them are dumber than that.
quoteer: Why half?

Reply to this

-

 Re: Re: amarok2 working here

 
 by mattepiu on: Jun 21 2009
 
Score 50%

ouch, I've seen this just now.. .them are there for you to include at will


Reply to this

-

 Ploum

 
 by Woshee on: Feb 12 2009
 
Score 50%

Hello,

Using Opensuse 11.0, with amarok 1.4.10.
Two things:
- When I install googlyrics2 beta4 from the built in browser of amarok, there are plenty of *.py that are displayed in the "General" section of the installed scripts. When I uninstall googlyrics, they seem to vanish with it.

- I had a problem with unusual characters, but it seems you have already a work around.

Good job for this app.


Woshee
Reply to this

-

 Re: Ploum

 
 by Woshee on: Feb 12 2009
 
Score 50%

I confirm shizzledizzle trick works well.


Reply to this

-

 ÃÃÃ

 
 by souplin on: Mar 19 2009
 
Score 50%

Beta4 sometimes the script crashes, when the song/band name contains a öäüÖÄÜ character.


/usr/lib/python2.6/urllib.py:1216: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal res = map(safe_map.__getitem__, s) Traceback (most recent call last): File "/home/souplin/.kde/share/apps/amarok/scripts/Googlyrics2/Googlyrics2.py", line 50, in <module> a.run() File "/home/fidol/.kde/share/apps/amarok/scripts/Googlyrics2/Googlyrics2.py", line 45, in run doctxt = doc.toxml() File "/usr/lib/python2.6/xml/dom/minidom.py", line 45, in toxml return self.toprettyxml("", "", encoding) File "/usr/lib/python2.6/xml/dom/minidom.py", line 60, in toprettyxml return writer.getvalue() File "/usr/lib/python2.6/StringIO.py", line 270, in getvalue self.buf += ''.join(self.buflist) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)


Reply to this

-

 Re: ÃÃÃ

 
 by grindi on: Apr 6 2009
 
Score 50%

Could you tell me artist and title of the song which results in fail?


Reply to this

-

 Re: Re: ÃÃÃ

 
 by LarsF on: Apr 7 2009
 
Score 50%

For example:
Artist:
Erste Allgemeine Verunsicherung
Title:
BaBaBanküberfall

or
Artist:
Erste Allgemeine Verunsicherung
Title:
Sandlerkönig Eberhard


Reply to this

-

 Re: Re: Re: ÃÃÃ

 
 by grindi on: Apr 11 2009
 
Score 50%

It's seems that the problem was already solved and will be fixed in the nearest release. If you don't want to wait you can fetch the latest version from repo.
First you need install mercurial (something like "sudo apt-get install mercurial" on debian-based systems) and then type in console:


cd ~/.kde/share/apps/amarok/scripts
mv Googlyrics2{,_old}
hg clone http://hg.limeskull.org/Googlyrics2/


After these operations restart amarok.


Reply to this

-

 Re: Re: Re: Re: ÃÃÃ

 
 by LarsF on: Apr 12 2009
 
Score 50%

That worked.

Thank you very much!


Reply to this

-

 General script instead regex

 
 by outlikeashoe on: May 15 2009
 
Score 50%

Hi, great and well working project, I have used for a certain period this program, but after some months without updating, I have a little issue: sometimes the html structure of sites changes and the regex for a site is no longer valid. To avoid problems of this kind, I've write this script that is part of lrcShow-X (under GPL) you could take a look at it. Basically, it searches on google like yours, removes the obvious wrong sites like youtube, yahoo and others. Get the others links and, in order, tries to parse the page stripping some tags, and splitting into different parts the code, and taking the longest of these. Checks for obvious wrong massages (like "lyrics cannot be displayed due to copyright licences" and so on).
If the extracted lyrics could be valid returns it, otherwise skip to the next google link.

You can find the code at http://www.sanfanling.cn/svn/lrcShow-X/branches/outlikeashoe/lrcShow-X/engines/plain_lyrics.py .
Hope this helps.


Reply to this

goto page: prev   1  2  3  4  5 

Add commentBack






-
-
How do you like Plasma 5?
 The best KDE Desktop ever.
 Definitely a nice improvement.
 Not decided yet. Haven't tried it yet.
 I do not like some of the changes.
 KDE is taking the wrong way.
 I am still sticking with KDE 3.5.
 I have no opinion, but wanted to vote anyway.

resultmore
 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Participate
Groups
Forum
Add App
Public API
About KDE-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2003-2014 KDE-Apps.org Team  
All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.