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


- EnderW - 2005-08-09

awww....sod off now, will ya...had to dig deep into my download cache to find this one again  :d

seriously though, dunno if it works, but if it works fine tell me and i'll update the one on xbmcscripts.com .

http://enderw.emutalk.net/xbmclyrics.zip


- Djsnake - 2005-08-10

Quote:seriously though, dunno if it works, but if it works fine tell me and i'll update the one on xbmcscripts.com .

thank you! i'll try it tomorrow morning.
if you update xbmcscript.com this release is automatically avaiable in the xbmc install script too?
thx! Smile


i'm thinkin'... why don't change the online database of xbmclyrics?
http://www.lyrc.com.ar is wierd to submit lyrics...!! Sad
are there others lyrics databases?
thx!


- EnderW - 2005-08-10

the install script gets data directly from the download database, so it's instant, yes.

about changing the lyrics source, it works fine here (dunno about the submission, i don't use it), but there's no chance i will do anything more on that. i am way too busy trying to get this script installer/browser going to do anything else so please don't direct any requests at me Smile
others are free to tinker around with it tho...


- Djsnake - 2005-08-10

(enderw @ aug. 09 2005,21:55 Wrote:seriously though, dunno if it works, but if it works fine tell me and i'll update the one on xbmcscripts.com .
it doesn't work well..
the one on xbmcscript works fine


- smuto - 2005-08-10

xbmclyrics with cache folder q:\albums\lyrics

http://chokemaniac.xbmc.org/viewtopic.php?t=316

with little skin mod


- Djsnake - 2005-08-10

(smuto @ aug. 10 2005,13:40 Wrote:xbmclyrics with cache folder q:\albums\lyrics

http://chokemaniac.xbmc.org/viewtopic.php?t=316

with little skin mod
is the same release above?


- smuto - 2005-08-10

from readme
Quote:create a cache directory inside the folder where the script is located. just name it "cache" (lowercase, no quotes). [colgate]

this one from chokemaniac's forum creates lyrics directory inside the albums folder

that only different


- Talus - 2006-04-23

this script no longer appears to be wrapping text with the latest cvs? or is it just me?

if a line is too long, it repeats upon itself on the same line now instead of wrapping down to the next line.


- Talus - 2006-04-24

after a little more research, it seems as though the lines that are getting superimposed are not necessarily too long/wide to fit on screen.

maybe the font needs to be made smaller or more lines made to fit inside the window?

i've e-mailed the author (or at least the address included in the readme.txt). i'll post back if i get a reply.


- sCAPe - 2006-04-24

i have the same problem with latest cvs build.

some lines are displayed over themselves and cannot be read correctly.

would love to see a fix for this.


- Talus - 2006-04-24

whew..it's nice to have confirmation at least. so it's not just me Wink

in the meantime if i get adventurous, i'll try editing the script myself.

my wife enjoys this feature a lot and she is getting ticked that 'i just broke it'. :d






- seajay1221 - 2006-04-25

yeah, glad to see it's not just me also. luck to you in fixing this.


- Talus - 2006-04-25

here is the reply i got:

Quote:hi,

thanks for the report, but unfortunately i have no idea why that
happens. since the script works on previous xbmc versions i don't
think it's my fault.

enderw






- sCAPe - 2006-04-25

perhaps it has something to do with the skin changes?
i think jmarshall changed some things with the line wrapping?


- Nuka1195 - 2006-04-25

for a quick and dirty fix. replace the following. there isn't any big change. you might notice some of the paragraphs are split. you could play with this some more to fix that.

this:
Quote: def parse_lyrics(self, lyrics):
try:
query = re.compile('</font><br>(.*)<p><hr size=1', re.ignorecase | re.dotall)
full_lyrics = re.findall(query, lyrics)
self.final = full_lyrics[0].replace("<br />\r\n","\n ")
except:
try:
query = re.compile('</font><br>(.*)<br><br><a href="#', re.ignorecase | re.dotall)
full_lyrics = re.findall(query, lyrics)
self.final = full_lyrics[0].replace("<br />\r\n","\n ")
except:
print lyrics
self.final = "unusual page layout, no parsing built in yet..."
return str(self.final)

to:
Quote: def parse_lyrics(self, lyrics):
try:
query = re.compile('</font><br>(.*)<p><hr size=1', re.ignorecase | re.dotall)
full_lyrics = re.findall(query, lyrics)
self.final = full_lyrics[0].replace("<br />\r","\n ")
except:
try:
query = re.compile('</font><br>(.*)<br><br><a href="#', re.ignorecase | re.dotall)
full_lyrics = re.findall(query, lyrics)
self.final = full_lyrics[0].replace("<br />\r","\n ")
except:
print lyrics
self.final = "unusual page layout, no parsing built in yet..."
return str(self.final)