Kodi Community Forum
[RELEASE] xbmclyrics script - automatically grabs lyrics online - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Lyrics Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=146)
+---- Thread: [RELEASE] xbmclyrics script - automatically grabs lyrics online (/showthread.php?tid=10187)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24


Lyrics gone? - detroitdr - 2009-09-05

Lyrics stopped working for me all of a sudden. (for about 3 days now) I've search the internet and thought I saw traces of the FREE lyrics are done now... Is this true?

Can XBMC Lyircs still pull lyrics?


- thomash72 - 2009-09-08

Lyrics also stopped working for me. I'm getting a "Artist not found" for all artists all of a sudden. Can anyone confirm they are still able to get the XBMC lyrics to work ? I'll provide a logfile if anyone is interested in having a look


- Meez - 2009-09-09

XBMC Lyrics has not been working for me either. all i get is a black panel even for the songs which already have lyrics downloaded.


- willers.nail - 2009-09-09

not working here either


- thomash72 - 2009-09-11

guess we'll just have to be patient. Would love to have this working again. Being a norwegian, this script has taught me the CORRECT lyrics of many songs :-)


- mots - 2009-09-18

An update would be more than awesome Smile


- detroitdr - 2009-09-18

Reading on the net... I'm not sure an update will fix it.

I could be wrong.. but from what I've seen the companies giving free lyrics don't want scripts or api interaction anymore.. as an individual you can still use their services but i think we MAY be out of luck.

dunno....


- xbmcuser01 - 2009-09-19

I remember that there was I way to let the lyrics script pop up under the right mouse button (i.e. the context menu). But I don't know how..... Can anybody describe how to do it? Huh


- mots - 2009-09-21

@WhoEver maintains this script:
there is a haxy way to still get lyrics from lyricwiki, here's some code from a sonata plugin that uses it:

Code:
class LyricWiki(object):
    def get_lyrics_start(self, *args):
        lyricThread = threading.Thread(target=self.get_lyrics_thread, args=args)
        lyricThread.setDaemon(True)
        lyricThread.start()

    def lyricwiki_format(self, text):
        return urllib.quote(str(unicode(text).title()))

    def get_lyrics_thread(self, callback, artist, title):
        try:
#            timeout = socketgettimeout()
#            socketsettimeout(consts.LYRIC_TIMEOUT)
            lyricpage = urllib.urlopen("http://lyricwiki.org/index.php?title=%s:%s&action=edit" % (self.lyricwiki_format(artist), self.lyricwiki_format(title))).read()
            content = re.split("<textarea[^>]*>", lyricpage)[1].split("</textarea>")[0]
            if content.startswith("#REDIRECT [["):
                addr = "http://lyricwiki.org/index.php?title=%s&action=edit" % urllib.quote(content.split("[[")[1].split("]]")[0])
                    content = urllib.urlopen(addr).read()
            lyrics = content.split("&lt;lyrics&gt;")[1].split("&lt;/lyrics&gt;")[0]
            if lyrics.strip() != "&lt;!-- PUT LYRICS HERE (and delete this entire line) --&gt;":
                lyrics = misc.unescape_html(lyrics)
                lyrics = misc.wiki_to_html(lyrics)
                lyrics = lyrics.decode("utf-8")
                self.call_back(callback, lyrics=lyrics)
            else:
                error = _("Lyrics not found")
                self.call_back(callback, error=error)
        except:
            error = _("Fetching lyrics failed")
            self.call_back(callback, error=error)

I would fix it myself, but I'm busy with my mpd emulator and the lyricwiki scraper only has .pyo-files, no source ones...


- xbmcuser01 - 2009-09-22

@mots: What exactly do you mean by "Sonata plugin"?


- thomash72 - 2009-09-24

Thankx mots! I really hope someone with python skills pick this up since I miss this plug-in!!


- mots - 2009-10-01

xbmcuser01 Wrote:@mots: What exactly do you mean by "Sonata plugin"?

A plugin for sonata.

If someone gave me the complete source to the xbmclyrics plugin, I'd give it a shot, but even on svn, there is only a lyricsScraper.pyo and no .py, and I'm not willing to start that crap from scratch :/


- pajretX - 2009-10-01

here you go > LINK


- mots - 2009-10-01

the link you gave me doesn't contain a lyricsScraper.py, either... (in resources/scrapers/lyricwikiapi)


- pajretX - 2009-10-01

http://px.wporzo.pl/lyricsScraper.py