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


- Tomkun - 2005-03-02

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?


- EnderW - 2005-03-02

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?


- solexalex - 2005-03-02

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.


- EnderW - 2005-03-02

(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


- Tomkun - 2005-03-03

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.


- Tomkun - 2005-03-03

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



- EnderW - 2005-03-03

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...


- ceomr - 2005-03-03

: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

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\scorpions - 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


- spiff - 2005-03-03

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).


- Tomkun - 2005-03-03

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!


- solexalex - 2005-03-03

yes ! tryed it yesterday night, and it works !
not tryed to get new lyrics automatically for 2 songs... but it works...
nice product !!


- EnderW - 2005-03-03

(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.


- jmarshall - 2005-03-03

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


- nishil - 2005-03-12

wickid script mate very very well done :bowdown: :kickass: :thumbsup:


- EnderW - 2005-03-13

(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