[RELEASE] CU LRC Lyrics

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
taxigps Offline
Team-XBMC Python Developer
Posts: 455
Joined: Jan 2009
Reputation: 1
Post: #1
script.cu.lrclyrics
===================

use XBMC.org Add-ons repo to install it.

cu.lrclyrics is based on the cu and lrc lyrics scripts.

credits to everyone who worked on these scripts before:
EnderW, Nuka1195, Taxigps, amet, ronie, yannrouillard


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


depending on which options you've enabled, the script searches for lyrics in this order:
- embedded lrc lyrics
- lrc lyrics file
- minilyrics scraper (lrc)
- ttplayer scraper (lrc)
- alsong scraper (lrc)
- baidu scraper (lrc)
- gomaudio scraper (lrc)
- lyrdb scraper (lrc)
- embedded text lyrics
- text lyrics file
- lyricwiki scraper (text)
- lyricsmode scraper (text)
- lyricstime scraper (text)
- darklyrics scraper (text)


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


if you have a problem with this addon, please include a link to your Debug Log.
(This post was last modified: 2014-11-20 02:18 by ronie.)
find quote
Skank Online
Posting Freak
Posts: 1,654
Joined: Jul 2012
Reputation: 7
Post: #2
Cool gonna try asap, guess lrc lyrics isnt neede anymore thenThanks!
find quote
DDDamian Offline
Team-XBMC Developer
Posts: 3,028
Joined: Sep 2011
Reputation: 254
Location: Canada
Post: #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!
find quote
amet Offline
Retired Team-Kodi Member
Posts: 4,087
Joined: Jul 2009
Reputation: 41
Location: Novi Sad / Dubai
Post: #4
I am interested in how you chose the name? Smile
find quote
DDDamian Offline
Team-XBMC Developer
Posts: 3,028
Joined: Sep 2011
Reputation: 254
Location: Canada
Post: #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!
find quote
taxigps Offline
Team-XBMC Python Developer
Posts: 455
Joined: Jan 2009
Reputation: 1
Post: #6
(2012-12-07 18:09)amet Wrote:  I am interested in how you chose the name? Smile

1+1=2Big Grin
find quote
Mizaki Offline
Fan
Posts: 726
Joined: Apr 2011
Reputation: 14
Post: #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: watched-clearlogo.jpg]
AWXi - Ajax web interface. Wiki
find quote
ronie Offline
Team-Kodi Member
Posts: 9,437
Joined: Jan 2009
Reputation: 165
Post: #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.

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Mizaki Offline
Fan
Posts: 726
Joined: Apr 2011
Reputation: 14
Post: #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: watched-clearlogo.jpg]
AWXi - Ajax web interface. Wiki
find quote
ronie Offline
Team-Kodi Member
Posts: 9,437
Joined: Jan 2009
Reputation: 165
Post: #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.

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Mizaki Offline
Fan
Posts: 726
Joined: Apr 2011
Reputation: 14
Post: #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: watched-clearlogo.jpg]
AWXi - Ajax web interface. Wiki
find quote
Mizaki Offline
Fan
Posts: 726
Joined: Apr 2011
Reputation: 14
Post: #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: watched-clearlogo.jpg]
AWXi - Ajax web interface. Wiki
(This post was last modified: 2012-12-12 16:15 by Mizaki.)
find quote
ronie Offline
Team-Kodi Member
Posts: 9,437
Joined: Jan 2009
Reputation: 165
Post: #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

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Mizaki Offline
Fan
Posts: 726
Joined: Apr 2011
Reputation: 14
Post: #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: watched-clearlogo.jpg]
AWXi - Ajax web interface. Wiki
find quote
a2wistd2 Offline
Junior Member
Posts: 23
Joined: Nov 2009
Reputation: 0
Post: #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!
find quote
Post Reply