• 1
  • 9
  • 10
  • 11(current)
  • 12
  • 13
  • 24
[RELEASE] xbmclyrics script - automatically grabs lyrics online
maybe post a debug log when it happens.

What type of music are you playing? (mp3's...)
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
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?
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 + (#,) ):
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
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.
you need to view the scripts debug window. black button after exiting the script, while your in the scripts window.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
thanks Nuka1195. I got it working.
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 :S
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
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 :S

I'm using two different xbmclyrics, since the newer versions won't find French songs.
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.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
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
The version your using for French doesn't use http://lyrc.com.ar ? That's the original site.

Then you'll need a new scraper. Not something I can probably do since it's a language i don't speak. Maybe post a link to the script that does work for you and i can take a look.

Using LyricWiki.org scraper.
Quote:Foule Sentimentale

Using lyrc.com.ar scraper
Quote:
('Alain souchon - Le fil - souchon', 'tema1en.php?hash=675b95819a48c6e3718ddb19267c686c')
('Alain souchon - J\xb4ai dix ans', 'tema1en.php?hash=e4206d6bd56cdba08f2c8c3470f34f57')
('Alain souchon - Ballade de jim', 'tema1en.php?hash=7d4690c9e2d074a75ff547b4d750c870')
('Alain souchon - Lulu', 'tema1en.php?hash=a4368f5b87f830f7a4665466cb59adf4')
('Alain souchon - Le baiser', 'tema1en.php?hash=d9db21f4b62e872c5169b6271bcf50a1')
('Alain souchon - Bidon', 'tema1en.php?hash=a25e7b959482dc0385a6d49cda71b113')
('Alain souchon - On avance', 'tema1en.php?hash=51c599866c4b6febb5107f3fb630636b')
('Alain souchon - Manivelle', 'tema1en.php?hash=635e9a745d2dfe8057e9ecb028a1c2b4')
('Alain souchon - Le d\xe9gout', 'tema1en.php?hash=ee7bb9e0215e8ed9eb8575a424555729')
('Alain souchon - Rame', 'tema1en.php?hash=fa597f02dd32533445c172b07f9a5c0a')

Did you change scrapers in settings? (white button on remote)
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Here are two songs that won't work with the new versions:
Alain Souchon - Toto 30 Ans
Renaud - Hexagone
but there are tons of others.

I don't have a controller, which button is it on the remote? (but as far as I know I didn't change the settings).

I can send my older version via email if that would help.
Try the info or display button.

Sure you can e-mail me the older version, but it should be the same as selecting lyrc.com.ar scraper in settings.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Nuka1195 Wrote:Try the info or display button.

Sure you can e-mail me the older version, but it should be the same as selecting lyrc.com.ar scraper in settings.

Well I guess the version is so old, that it doesn't have settings(the new version shows the settings when I press the info button).

Could you pm me your email?
Thanks again
Sorry for double posting, but here's a weird problem I just had.
I was using the new xbmclyrics, and I looked for a song, and it gave me a list of options(same artist different songs). I chose the right song. Then I restarted xbmclyrics and now for this song I get 'no artist found'.
  • 1
  • 9
  • 10
  • 11(current)
  • 12
  • 13
  • 24

Logout Mark Read Team Forum Stats Members Help
[RELEASE] xbmclyrics script - automatically grabs lyrics online1