XBMC Community Forum
[RELEASE] xbmclyrics script - automatically grabs lyrics online - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Lyrics Add-ons (/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 25 26 27 28 29 30 31 32 33 34 35


- Nuka1195 - 2007-05-24 22:07

maybe post a debug log when it happens.

What type of music are you playing? (mp3's...)


- a76b492 - 2007-06-06 02:25

I really like this script and would like to have a button on my universal remote dedicated to it. I have successfully added the xbmc.runscript command to my keymap.xml. What I would like to do is have the same button stop the script. Is there some code I could add to the script that would check to see if the script is already running and if so kill it?


- Nuka1195 - 2007-06-06 03:36

add the following to the onAction() event:
Code:
print "ACTION:", action.getButtonCode()
run the script and press that button and then press back to exit
the first "ACTION: #" statement is what you want.
then add that number to the following line and get rid of the print statement.

old
Code:
if ( action.getButtonCode() in utilities.EXIT_SCRIPT ):

new *remember the parens and comma. so just replace the # with your code
Code:
if ( action.getButtonCode() in utilities.EXIT_SCRIPT + (#,) ):



- a76b492 - 2007-06-06 07:45

Thanks for the code NUKA1195 but I can't seen to get this working. I put the print "ACTION:" command under the def onAction section of the gui.py, ran the script and pushed the button. Where does the script "print" the button code? Nothing pops up on screen and I checked all the logs.


- Nuka1195 - 2007-06-11 20:16

you need to view the scripts debug window. black button after exiting the script, while your in the scripts window.


- a76b492 - 2007-06-12 10:37

thanks Nuka1195. I got it working.


- Nuka1195 - 2007-06-19 17:08

Could anybody confirm that language files other than english were working.

I just committed a change that should fix that. The way it was, other than english strings should not have worked Confused


- LRa - 2007-06-19 17:37

Nuka1195 Wrote:Could anybody confirm that language files other than english were working.

I just committed a change that should fix that. The way it was, other than english strings should not have worked Confused

I'm using two different xbmclyrics, since the newer versions won't find French songs.


- Nuka1195 - 2007-06-19 17:47

Ok, I actually meant the language files. Would you supply a French language file?

About the songs, Have you tried both scrapers? Do you have a website that has French songs? You may need a new scraper if your songs are not on http://www.lyricwiki.org or http://lyrc.com.ar. Have you checked those websites for your songs?

post a song and artist of ones that don't work.


- LRa - 2007-06-19 18:36

Sure.
For example Alain Souchon and antoher - Renaud.
Two very well known French artists. Both sites have a very limited selection of their songs. In spite of that, a much older version of xmbclyrics I have do find all of their songs I look up.

Also http://www.lyricwiki.org and http://lyrc.com.ar don' have Hebrew songs, but even if they did, it wouldn't work, since when xbmclyrics searchs for the songs, the letters a gibbrish and not Hebrew, although Hebrew fonts work as subtitles and while browsing the folders.

Hope that helps.
Thanks