• 1(current)
  • 2
  • 3
  • 4
  • 5
  • 89
Release CU LRC Lyrics
#1
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.
Reply
#2
Cool gonna try asap, guess lrc lyrics isnt neede anymore thenThanks!
Reply
#3
Alright!!!! Smile
System: XBMC HTPC with HDMI WASAPI & AudioEngine - Denon  AVR-3808CI  - Denon DVD-5900 Universal Player  - Denon DCM-27 CD-Changer
- Sony BDP-S580 Blu-Ray  - X-Box 360  - Android tablet wireless remote - 7.1 Streem/Axiom/Velodyne Surround System
If I have been able to help feel free to add to my reputation +/- below - thanks!
Reply
#4
I am interested in how you chose the name? Smile

Reply
#5
Brilliant with the auto-scroll feature. Kudos to Taxigps, Amet and all the contributors Smile
System: XBMC HTPC with HDMI WASAPI & AudioEngine - Denon  AVR-3808CI  - Denon DVD-5900 Universal Player  - Denon DCM-27 CD-Changer
- Sony BDP-S580 Blu-Ray  - X-Box 360  - Android tablet wireless remote - 7.1 Streem/Axiom/Velodyne Surround System
If I have been able to help feel free to add to my reputation +/- below - thanks!
Reply
#6
(2012-12-07, 18:09)amet Wrote: I am interested in how you chose the name? Smile

1+1=2Big Grin
Reply
#7
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?
Image
AWXi - Ajax web interface. Wiki
Reply
#8
(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.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#9
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?
Image
AWXi - Ajax web interface. Wiki
Reply
#10
(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.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#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!
Image
AWXi - Ajax web interface. Wiki
Reply
#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 }
Image
AWXi - Ajax web interface. Wiki
Reply
#13
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
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#14
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...
Image
AWXi - Ajax web interface. Wiki
Reply
#15
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!
Reply
  • 1(current)
  • 2
  • 3
  • 4
  • 5
  • 89

Logout Mark Read Team Forum Stats Members Help
CU LRC Lyrics1