[RELEASE] xbmclyrics script - automatically grabs lyrics online

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Closed
solexalex Offline
Skilled Python Coder
Posts: 706
Joined: Jul 2004
Reputation: 6
Post: #11
erpi99
if you want scripts added inside scriptrunner, you have to request the creator of this script : threezee
find
EnderW Offline
Skilled Python Coder
Posts: 249
Joined: Feb 2005
Reputation: 0
Post: #12
did a little work on the script today, trying to add support for auto-update of lyrics. however, it seems that xbmc crashes when you call getmusicinfotag() more than once. the weirdest part is that sometimes you can exit the script, and it won't crash until you start a new song. i could be doing something wrong, but i'd have no idea why. anyone else experienced problems using this?

the other things mentioned in this thread will come shortly..

xbmcscripts.com administrator
find
Tomkun Offline
Fan
Posts: 491
Joined: Jul 2004
Reputation: 4
Location: Japan
Post: #13
i've used this script a lot and i have never had it crash yet. even if i play two or more songs in a row and look up the lyrics for all of them. i have to say, i am loving this script! i hope you can get everything working that you want.
find
EnderW Offline
Skilled Python Coder
Posts: 249
Joined: Feb 2005
Reputation: 0
Post: #14
well, it could be bad coding on my part. this is the function in a class spawned by threading.thread:

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

any suggestions?

self.overlay.get_player() returns xbmc.player() from the other class (overlay).

xbmcscripts.com administrator
find
EnderW Offline
Skilled Python Coder
Posts: 249
Joined: Feb 2005
Reputation: 0
Post: #15
ok, i have added the two things as "promised". i have a feeling that it won't look correct on a ntsc tv though, but as i have got none to test with it's rather hard to adjust. if you find correct values. please report and i'll of course fix it...

i have got a new server, so hopefully no downtimes anymore:

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

xbmcscripts.com administrator
find
Tomkun Offline
Fan
Posts: 491
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: 491
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
Thread Closed