[RELEASE] xbmclyrics script - automatically grabs lyrics online

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Closed
Tomkun Offline
Fan
Posts: 567
Joined: Jul 2004
Reputation: 4
Location: Japan
Post: #16
i've just tried the new script. but it won't work. i guess as it works on yours it's a problem with the ntsc?
find
EnderW Offline
Skilled Python Coder
Posts: 249
Joined: Feb 2005
Reputation: 0
Post: #17
it really shouldn't. can you please post the error message? also, are you certain that lyricspanel.png is in the same folder as the script?

xbmcscripts.com administrator
find
solexalex Offline
Skilled Python Coder
Posts: 706
Joined: Jul 2004
Reputation: 6
Post: #18
hi!
not tried yet !
as for the skin, if you want i can modify it to make it fit any screen size.
not very hard to do.
find
EnderW Offline
Skilled Python Coder
Posts: 249
Joined: Feb 2005
Reputation: 0
Post: #19
(solexalex @ mar. 02 2005,18:20 Wrote:hi!
not tried yet !
as for the skin, if you want i can modify it to make it fit any screen size.
not very hard to do.
i was hoping that i had done that already, but if it isn't correct feel free to correct it Smile

xbmcscripts.com administrator
find
Tomkun Offline
Fan
Posts: 567
Joined: Jul 2004
Reputation: 4
Location: Japan
Post: #20
i have it set up exactly the same way as the previous script. everything is in the same folder. there is no error message, it just won't start. just flashes 'running' for a split second. later on, i will post the log.
find
Tomkun Offline
Fan
Posts: 567
Joined: Jul 2004
Reputation: 4
Location: Japan
Post: #21
ok, here is the log. let me know if you need anything else.
Quote:03-03-2005 12:25:47 info stating file q:\system\players\mplayer\steppenwolf - magic carpet ride.mp3.conf
03-03-2005 12:25:47 notice start led control
03-03-2005 12:25:52 debug loadlibrarya('zlib.pyd')
03-03-2005 12:25:52 debug executing entrypoint at: 0x16384ff - dll: zlib.pyd
03-03-2005 12:25:52 debug loadlibrary('zlib.pyd') returning: 0x81cde0
03-03-2005 12:25:52 debug kernel32!getprocaddress(0x81cde0, 'initzlib') => 0x1632210
03-03-2005 12:25:52 info -->python initialized<--
03-03-2005 12:25:52 info
03-03-2005 12:25:52 info file "
03-03-2005 12:25:52 info q:\scripts\xbmclyrics\xbmclyrics.py
03-03-2005 12:25:52 info ", line
03-03-2005 12:25:52 info 1
03-03-2005 12:25:52 info
03-03-2005 12:25:52 info
03-03-2005 12:25:52 info self.setfocus(self.textbox)
03-03-2005 12:25:52 info
03-03-2005 12:25:52 info ^
03-03-2005 12:25:52 info syntaxerror
03-03-2005 12:25:52 info :
03-03-2005 12:25:52 info invalid syntax
03-03-2005 12:25:52 info
03-03-2005 12:25:57 debug freeing fs segment @ 0x7fc8f0
03-03-2005 12:25:57 notice start led control
find
EnderW Offline
Skilled Python Coder
Posts: 249
Joined: Feb 2005
Reputation: 0
Post: #22
really weird problem. it works perfectly fine here...
that error doesn't make much sense either as it points out line 1 as the place of error. i suggest you try copy the script over once again, just to make sure nothing got broken during transfer (very unlikely though).

i haven't heard from anyone else getting it to run though, but then again i haven't heard from anyone who doesn't either. if anyone can run this script (latest version), please reply...
please state pal or ntsc - and error message if not getting it to work...

xbmcscripts.com administrator
find
ceomr Offline
Member
Posts: 75
Joined: Mar 2004
Reputation: 0
Post: #23
:thumbsup: reply -> it works fine!
i never had a problem except some audio_files aren't in database

newest mediacenter 03_03_2005
newest python lib

lyrics.py -> last updated: march 2nd 2005

pal -> ceomr mediacenter skin -> integrated script -> mymusicplaylist.xml
but with project mayhem it works fine too

[Image: lyrics_test.jpg]

debug_log
03-03-2005 13:36:39 info mplayer play:f:\eigene_musik\verschiedenes\singles\auswahl\scorpions - wind of change.mp3 cachesize:256
03-03-2005 13:36:39 info flipping bi-directional subtitles disabled
03-03-2005 13:36:39 info stating file f:\eigene_musik\verschiedenes\singles\auswahl\scorpions - wind of change.mp3.conf
03-03-2005 13:36:39 info stating file q:\system\players\mplayer\f:\eigene_musik\verschiedenes\singles\auswahl\scorpion​s - wind of change.mp3.conf
03-03-2005 13:36:39 notice start led control
03-03-2005 13:36:44 debug loadlibrarya('_ssl.pyd')
03-03-2005 13:36:44 debug executing entrypoint at: 0x17be951 - dll: _ssl.pyd
03-03-2005 13:36:44 debug loadlibrary('_ssl.pyd') returning: 0xc06b00
03-03-2005 13:36:44 debug kernel32!getprocaddress(0xc06b00, 'init_ssl') => 0x1771aa0
03-03-2005 13:36:44 debug loadlibrarya('_sre.pyd')
03-03-2005 13:36:44 debug executing entrypoint at: 0x17fa3cb - dll: _sre.pyd
03-03-2005 13:36:44 debug loadlibrary('_sre.pyd') returning: 0xb4e1a0
03-03-2005 13:36:44 debug kernel32!getprocaddress(0xb4e1a0, 'init_sre') => 0x17fa120
find
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #24
working nicely here, @ pal 16:9

xbmc cvs 010305
python from sometime ago (however, i believe there has been a while since there were any updates).
find
Tomkun Offline
Fan
Posts: 567
Joined: Jul 2004
Reputation: 4
Location: Japan
Post: #25
no way! i did as you suggested on an offchance, i copied it over again and it works perfectly!!! looks great on my ntsc tv too!
find
solexalex Offline
Skilled Python Coder
Posts: 706
Joined: Jul 2004
Reputation: 6
Post: #26
yes ! tryed it yesterday night, and it works !
not tryed to get new lyrics automatically for 2 songs... but it works...
nice product !!
find
EnderW Offline
Skilled Python Coder
Posts: 249
Joined: Feb 2005
Reputation: 0
Post: #27
(solexalex @ mar. 03 2005,18:20 Wrote:yes ! tryed it yesterday night, and it works !
not tryed to get new lyrics automatically for 2 songs... but it works...
nice product !!
it won't update lyrics automatically between two songs, due to that i can't load the song information twice without xbmc crashing. i have posted the update code snippet earlier here, so you can have a look at it if you like.

xbmcscripts.com administrator
find
jmarshall Offline
Team-XBMC Developer
Posts: 26,181
Joined: Oct 2003
Reputation: 175
Post: #28
i'm not a python guru by any stretch (have never coded anything in python) but i'd try something like this:

Quote: def run(self):
artist_name = ""
title_name = ""
while (self.running):
tag = self.overlay.get_player().getmusicinfotag()
if tag.gettitle() != title_name:
artist_name = tag.getartist()
title_name = tag.gettitle()
self.overlay.lyrics(artist_name, title_name)
time.sleep(5)

reason is that the tag variable may well be invalid once the song has finished, so doing tag.gettitle() is operating on an invalid variable.

cheers,
jonathan

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
nishil Offline
Member
Posts: 59
Joined: Jan 2005
Reputation: 0
Post: #29
wickid script mate very very well done :bowdown: :kickass: :thumbsup:
find
EnderW Offline
Skilled Python Coder
Posts: 249
Joined: Feb 2005
Reputation: 0
Post: #30
(nishil @ mar. 12 2005,18:09 Wrote:wickid script mate very very well done :bowdown:  :kickass:  :thumbsup:
thanks Smile


finally another update (and probably last for a long time unless some bugs come up). this update include only one extra feature really, and that is that it will update as the song you are listening to changes. so if you change song using the remote, or the song you're listening to ends it will pick up the new one and display lyrics for that.

enjoy and please report any bugs either here or by mail Smile

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

xbmcscripts.com administrator
find
Thread Closed