Kodi Community Forum
Release CU LRC Lyrics - 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 CU LRC Lyrics (/showthread.php?tid=147340)



CU LRC Lyrics - taxigps - 2012-12-06

script.cu.lrclyrics
===================

the script first tries to find synchronised (lrc) lyrics.
if no lrc lyrics are available, it will continue to search for unsynchronised (text) lyrics.
lrc lyrics will automatically scroll in kodi, text based lyrics will not.


depending on which options you've enabled, the script searches for lyrics in this order:
  1. embedded lrc lyrics
  2. lrc lyrics file
  3. lrc scrapers
  4. embedded text lyrics
  5. text lyrics file
  6. text scrapers

when the scripts downloads lyrics through one of the scrapers,
you can optionally save them to a file for future use.


use the kodi addon repo to install it.


If you have issues with this addon, please post a Debug Log!

1 enable debug logging in kodi
2 enable debug logging in the cu lrclyrics addon settings
3 restart kodi
4 reproduce the issue
5 post the entire kodi.log file on http://paste.ubuntu.com/


You will receive NO support without a debug log.


RE: [RELEASE] CU LRC Lyrics - merge cu and lrc lyrics scripts - Skank - 2012-12-06

Cool gonna try asap, guess lrc lyrics isnt neede anymore thenThanks!


RE: [RELEASE] CU LRC Lyrics - merge cu and lrc lyrics scripts - DDDamian - 2012-12-07

Alright!!!! Smile


RE: [RELEASE] CU LRC Lyrics - merge cu and lrc lyrics scripts - amet - 2012-12-07

I am interested in how you chose the name? Smile




RE: [RELEASE] CU LRC Lyrics - merge cu and lrc lyrics scripts - DDDamian - 2012-12-07

Brilliant with the auto-scroll feature. Kudos to Taxigps, Amet and all the contributors Smile


RE: [RELEASE] CU LRC Lyrics - merge cu and lrc lyrics scripts - taxigps - 2012-12-08

(2012-12-07, 18:09)amet Wrote: I am interested in how you chose the name? Smile

1+1=2Big Grin


RE: [RELEASE] CU LRC Lyrics - merge cu and lrc lyrics scripts - Mizaki - 2012-12-09

I don't know how feasible this is but doesn't hurt to ask Smile

I'd like to be able to use the lyrics for AWXi web interface. JSONRPC is out for now but I was wondering if it would be possible to do anything with the VFS. For example you can browse the other addons like:
Code:
{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params" : { "directory" : "plugin://plugin.video.iplayer/?content_type=audio", "media" : "music", "properties": [ "file" ] }, "id": 1}
If you could create a "Now playing" node or similar with the current lyrics in I could use that.

Hope that makes sense?


RE: [RELEASE] CU LRC Lyrics - merge cu and lrc lyrics scripts - ronie - 2012-12-09

(2012-12-09, 01:24)Mizaki Wrote: Hope that makes sense?

not to me Smile
but that's mainly because i have little to no knowledge of the plugin system.

cu lrc lyrics is a script, and i don't think the code snippet you've provided can be used with scripts.


i think we could provide the current lyrics as a window property infolabel,
but i have no idea if it's possible to retrieve infolabels trough a webinterface.


RE: [RELEASE] CU LRC Lyrics - merge cu and lrc lyrics scripts - Mizaki - 2012-12-10

There is XBMC.GetInfoLabels available with the JSONAPI which sounds good to me Smile

Ideally I'd quite like to be able to do the follow along as well, like the script. I guess you can just put the raw text in the info label?


RE: [RELEASE] CU LRC Lyrics - merge cu and lrc lyrics scripts - ronie - 2012-12-11

(2012-12-10, 23:59)Mizaki Wrote: There is XBMC.GetInfoLabels available with the JSONAPI which sounds good to me Smile

Ideally I'd quite like to be able to do the follow along as well, like the script. I guess you can just put the raw text in the info label?

i'v added $INFO[Window(Home).Property(culrc.lyrics)] for you to test with.

https://github.com/ronie/script.cu.lrclyrics

it's indeed the raw text, so for lrc based lyrics it will contain the timing info.


RE: [RELEASE] CU LRC Lyrics - merge cu and lrc lyrics scripts - Mizaki - 2012-12-11

I can get the text just fine. In case anyone else wants to try it I did:
Code:
{"jsonrpc": "2.0", "method": "XBMC.GetInfoLabels", "params" : { "labels" : [ "Window(Home).Property(culrc.lyrics)" ] }, "id": 1}

I just need to see if I can activate the script remotely and all should be good. Thanks!


RE: [RELEASE] CU LRC Lyrics - merge cu and lrc lyrics scripts - Mizaki - 2012-12-12

Is it possible to add the file name in there somewhere and/or clear it on song change and close? A tag to say if the window is open or not. I don't really have anyway to tell atm. Also, the lyrics source so I can give credit?

Actually it looks like the GUI doesn't clear on song change so, you are left with the lyrics for the last song until the new ones are found or not.

If I get chance (unless someone wants to do it first) over the break I'll see if I can do a format on the fly to JSON. Something like:
Code:
{ "open": true, "source": "lyrics.com", "artist": "Greatest Band EVER!", "album": "Best album!", "title": "Best song EVER!", "lyrics": "this is the best song ever! You've never heard a song as good as this...", "timecode": true }



RE: [RELEASE] CU LRC Lyrics - merge cu and lrc lyrics scripts - ronie - 2012-12-12

i've added Window(Home).Property(culrc.source)
and Window(Home).Property(culrc.running)
running will return 'true' if the script is running and empty if not.

the filename can already be retrieved by using something like this i think:
{"jsonrpc": "2.0", "method": "XBMC.GetInfoLabels", "params" : { "labels" : [ "Player.Filenameandpath " ] }, "id": 1}

or maybe using one of the Player.* / Playlist.* methods in json-rpc


RE: [RELEASE] CU LRC Lyrics - merge cu and lrc lyrics scripts - Mizaki - 2012-12-12

That's great.

I meant the file name of the lyric file so I could compare with the current title. However, now it looks like the next song is pre-fetched (and always was) so I'm confused as I'm sure I saw the GUI with the lyrics of the previous song as it was searching for the current one...


RE: [RELEASE] CU LRC Lyrics - merge cu and lrc lyrics scripts - a2wistd2 - 2012-12-13

I've been using the LRC plugin, which worked fine, but a few wishes. One of which would be to be able to have it try to find another version of the lyrics incase you chose the wrong one. I've had it when I get a whole long list of files to choose from, I select the first one and the lyrics are right, just the timing is way off but I have no way of selecting another. Also, why can't we save it to the same place the mp3 is with the same name? my naming convention is track number - song name. The plugin just saves song name in a different folder.

Thanks!