Bug 233605

Summary: [PATCH] to lyricwiki script
Product: [Applications] amarok Reporter: Oleg <verdrehung>
Component: Context ViewAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED FIXED    
Severity: normal CC: lfranchi, simon.esneault
Priority: NOR    
Version: unspecified   
Target Milestone: 2.3.1   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In: 2.3.1
Attachments: lyricwiki script
forgot to remove debug message in previous attachment
oops. sorry, one more bug fixed
lyricwiki.patch
lyricwiki.patch

Description Oleg 2010-04-07 14:41:00 UTC
Version:            (using KDE 4.3.4)
OS:                Linux
Installed from:    Debian testing/unstable Packages

Sometimes current lyricwiki script returns "*/" instead of lyrics.
It parse raw html page. I think this is bad way.
I made some changes in this script. I get lyrics using some useful wikimedia API functions.

I'll attach whole script instead of patch, because patch is bigger than script.
Comment 1 Oleg 2010-04-07 14:42:58 UTC
Created attachment 42568 [details]
lyricwiki script
Comment 2 Oleg 2010-04-07 14:57:54 UTC
Created attachment 42569 [details]
forgot to remove debug message in previous attachment

fix
Comment 3 Oleg 2010-04-07 15:15:16 UTC
Created attachment 42571 [details]
oops. sorry, one more bug fixed
Comment 4 Sven Krohlas 2010-04-07 21:06:25 UTC
Well, the size doesn't matter in that case, we need a patch.

Even better: a merge request at gitorious: http://gitorious.org/amarok/amarok/merge_requests
Comment 5 Oleg 2010-04-08 07:09:50 UTC
Created attachment 42584 [details]
lyricwiki.patch

ok, here it is
Comment 6 Oleg 2010-04-08 08:42:03 UTC
Created attachment 42587 [details]
lyricwiki.patch

last version, I think
Comment 7 Oleg 2010-04-11 19:35:36 UTC
Merge request:
http://gitorious.org/amarok/amarok/merge_requests/164
Comment 8 Mark Kretschmann 2010-04-20 18:16:35 UTC
Patch merged, thanks!


commit 2bc8ff6efb395f78fd82af8935fbfa272f3cd70f
Author: Oleg G <milfoil@host-172-22-139-17.academ.local>
Date:   Sat Apr 17 01:37:14 2010 +0700

   updated lyricwiki script: added support of <lyric> tag and tags correction by API if necessary