[RELEASE] xbmclyrics script - automatically grabs lyrics online

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Closed
EnderW Offline
Skilled Python Coder
Posts: 249
Joined: Feb 2005
Reputation: 0
Post: #46
awww....sod off now, will ya...had to dig deep into my download cache to find this one again  Big Grin

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

xbmcscripts.com administrator
find
Djsnake Offline
Member
Posts: 70
Joined: Jun 2004
Reputation: 0
Post: #47
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!

Great Success!
find
EnderW Offline
Skilled Python Coder
Posts: 249
Joined: Feb 2005
Reputation: 0
Post: #48
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...

xbmcscripts.com administrator
find
Djsnake Offline
Member
Posts: 70
Joined: Jun 2004
Reputation: 0
Post: #49
(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

Great Success!
find
smuto Offline
Senior Member
Posts: 242
Joined: Sep 2004
Reputation: 2
Post: #50
xbmclyrics with cache folder q:\albums\lyrics

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

with little skin mod

[Image: 1.png]
find
Djsnake Offline
Member
Posts: 70
Joined: Jun 2004
Reputation: 0
Post: #51
(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?

Great Success!
find
smuto Offline
Senior Member
Posts: 242
Joined: Sep 2004
Reputation: 2
Post: #52
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

[Image: 1.png]
find
Talus Offline
Member
Posts: 76
Joined: Dec 2004
Reputation: 0
Post: #53
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.
find
Talus Offline
Member
Posts: 76
Joined: Dec 2004
Reputation: 0
Post: #54
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.
find
sCAPe Offline
Fan
Posts: 440
Joined: Mar 2005
Reputation: 0
Location: Germany
Post: #55
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.

My XBOX built into a Sony Hifi CD-Player Case
XBOX Hifi Media Center Picture Gallery

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find
Talus Offline
Member
Posts: 76
Joined: Dec 2004
Reputation: 0
Post: #56
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'. Big Grin
find
seajay1221 Offline
Junior Member
Posts: 2
Joined: Mar 2006
Reputation: 0
Post: #57
yeah, glad to see it's not just me also. luck to you in fixing this.
find
Talus Offline
Member
Posts: 76
Joined: Dec 2004
Reputation: 0
Post: #58
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
find
sCAPe Offline
Fan
Posts: 440
Joined: Mar 2005
Reputation: 0
Location: Germany
Post: #59
perhaps it has something to do with the skin changes?
i think jmarshall changed some things with the line wrapping?

My XBOX built into a Sony Hifi CD-Player Case
XBOX Hifi Media Center Picture Gallery

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #60
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)

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find
Thread Closed