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) |
RE: CU LRC Lyrics - ronie - 2017-01-19 it's a bit more prone to false positives if it's going to match substrings instead of full words. since i've never seen those tags myself, do you happen to know if they come from a specific scarper? if those tags have a more or less fixed pattern, i might be able to strip them within the addon, instead of having a settings for them. edit: i have found some examples of QQ123456, www, lyrics by ... but still looking for some twitter examples. RE: CU LRC Lyrics - manfeed - 2017-01-19 Yes, I understand your point, in fact some time ago I was filtering with a visibility condition the string 'verse' and then I noticed that one song was lacking some lines, when I look into that I saw that those lines contained the word 'universe'... That's the reason why I see this option only as a way to get rid of garbage lines, those that you know for sure that can't belong to the lyrics... the ones that contains @,qq,www and so on... I have the option to save lyrics, so I don't know for sure from what source they came from, but I quick search in my saved lyrics for @ character returns... Code: C:\Music\Beyoncé\4\lyrics\Beyoncé - Love On Top.lrc (1 hit) ...in just the first part of my lyrics collection. I assume that unfortunately adding crap lines is a common bad habit between the people that upload lyrics, no matter the source, so I thought that a good way to filter could be to look for substrings, not whole words. If you think that it would be better to get rid of those lines within the addon that's fine too. From my experience I would suggest you could include in your list of substrings to filter the next ones... @ www lrc lyric ...lines that contain those substrings are safe to be removed. Thanks! RE: CU LRC Lyrics - ronie - 2017-01-20 i've removed the manual option and implemented it in the script itself. curious to hear about the results ;-) RE: CU LRC Lyrics - manfeed - 2017-01-20 (2017-01-20, 22:12)ronie Wrote: i've removed the manual option and implemented it in the script itself. That's the best option, because this way all will benefit of the filtering... (2017-01-20, 22:12)ronie Wrote: curious to hear about the results ;-) You already know that this time you have nailed it down I don't know what sort of wonder you have developed, but it filters whatever crap lines one throws at it... If the script keeps improving this way in no so long we will have a half-decent one... just kidding Terrific work Many thanks! RE: CU LRC Lyrics - Wanilton - 2017-01-21 Thanks ronie, tested and work, but don´t exist one way continue with second option inform manually too... I use word "artist" and "album" and "title" for filter too, now with internal function don´t work more for this words. Only one idea of course, Thanks again, RE: CU LRC Lyrics - ronie - 2017-01-21 ok. i've added checks for artist/album/title/song as well. RE: CU LRC Lyrics - Wanilton - 2017-01-21 Great, it´s perfect now. Amazing script, very well done.. Wanilton RE: CU LRC Lyrics - ronie - 2017-01-21 ok, let's call it a wrap then! until next time :-) RE: CU LRC Lyrics - ronie - 2017-01-22 @manfeed i had the pleasure of trying your lyrics mod for the first time today :-) i noticed it produces the following errors in the log: Code: ERROR: Control 101 in window 13000 has been asked to focus, but it can't the first one should be easy to fix by removing the <defaultcontrol>101</defaultcontrol> line i think? the second one, i don't know.. any idea why that happens? also, the textbox with id="100" can go, that was dropped from cu lrc years ago ;-) last thing, it did not seem to work with .txt based lyrics, it only displays the first line? RE: CU LRC Lyrics - ronie - 2017-01-22 edit: scratch that. looks like a bug in the skin i was trying. no errors when testing with another skin that adopted your lyrics mod. only these should go: - <defaultcontrol>101</defaultcontrol> - textbox="100" defaultcontrol is handled by the addon, not the skin and the textbox, as mentioned, is not used anymore. RE: CU LRC Lyrics - Gade - 2017-01-22 (2017-01-22, 14:11)ronie Wrote: only these should go: Do you remember in which Kodi version the above changes started? RE: CU LRC Lyrics - ronie - 2017-01-22 (2017-01-22, 14:42)Gade Wrote:(2017-01-22, 14:11)ronie Wrote: only these should go: the <defaultcontrol> definition was a never part of cu lrc lyrics skin window. and the textbox was removed a very very long time ago :-) http://forum.kodi.tv/showthread.php?tid=158812&pid=1536660#pid1536660 RE: CU LRC Lyrics - Gade - 2017-01-22 (2017-01-22, 15:07)ronie Wrote:(2017-01-22, 14:42)Gade Wrote:(2017-01-22, 14:11)ronie Wrote: only these should go: LOL Thanks a lot. I'll adjust it some versions back. EDIT: I see that I apparently already did the changed years ago for Rapier. Thought I still had a defaultcontrol... RE: CU LRC Lyrics - manfeed - 2017-01-22 (2017-01-22, 14:11)ronie Wrote: edit: Glad to know that no errors have been found in my mod, but I know for sure that my code can be improved, since I don't fully understand how your addon works. To tell the truth what I basically have always done is take a working version of script-cu-lrclyrics-main.xml from a skin, try to prevent from appearing the lines in the old format and adding my code so that the videolyrics lines are shown. I have tried to be conservative, lest I broke something, so it's sure that much of my code is redundant... Could you please lend a hand? Here is the version of script-cu-lrclyrics-main.xml that I'm currently using... http://www.mediafire.com/file/kdnb9z27ex6k360/script-cu-lrclyrics-main.xml ...lines 10 to 136 are the ones that contain the code inherited from other skins (except lines 44 and 45 that are my clumsy attempt to make the script skip empty lines when lyrics are txt and the user is moving them with arrow keys)... what parts of that code could I eliminate without affecting how the script works? Sorry for my ignorance and thanks in advance! RE: CU LRC Lyrics - ronie - 2017-01-22 ok, you can remove: - line 3 (the default control - this is handled by the script) - lines 13/23 (the textbox control - not used anymore by the script) and you really need to get rid of (clumsy or not): - lines 39/46 (thou shalt not use buttons in a container layout) |