![]() |
|
[RELEASE] CU Lyrics (Script) Addon - Printable Version +- XBMC Community Forum (http://forum.xbmc.org) +-- Forum: Help and Support (/forumdisplay.php?fid=33) +--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27) +---- Forum: Lyrics Add-ons (/forumdisplay.php?fid=146) +---- Thread: [RELEASE] CU Lyrics (Script) Addon (/showthread.php?tid=62853) |
- ZorMonkey - 2010-01-09 08:58 Hey, Python is fun! ![]() I was trying to track down a problem (displays incorrect lyrics once in a while) but I ended up not finding that bug, but I changed other little things in the process.
It's all in this function from gui.py, if you want it: Code: def show_lyrics( self, rawLyrics, save=False ):Standard disclaimers apply (I've spent maybe 4 hours in Python total, so it's likely that I don't know what I'm doing) - dny238 - 2010-01-16 13:56 Hey All. I got tired of 25% of my lyric lookups failing because of capitalization problems, so I put together this crappy hack to try to fix it. It seems to work a bit better. Thanks, Rob PHP Code: def get_lyrics(self, artist1, song1, show):- dny238 - 2010-01-19 16:58 I'm using the new confluence skin and have a few issues 1) I can't get CU Lyrics to scroll lyrics automatically. Is there something more to it? I can scroll manually, but I'd prefer it just roll by itself. 2) Long lines aren't wrapping properly in the popout window CU Lyrics provides on the right side for the lyrics display. Rob - amet - 2010-01-19 19:59 dny238 Wrote:I'm using the new confluence skin and have a few issues It doesnt scroll automatically, you can set it to "smooth scroll" under script settings. that will scroll line by line dny238 Wrote:2) Long lines aren't wrapping properly in the popout window CU Lyrics provides on the right side for the lyrics display. Try with smooth scrolling, i think it might wrap there. Zeljko - dny238 - 2010-01-20 06:18 Amet Wrote:It doesnt scroll automatically, you can set it to "smooth scroll" under script settings. that will scroll line by line Got it. I was overthinking it. Can you add a autoscroll option to the script? I imagined it working like this. (Numbers are fake to illustrate the math) 1) Song is 3 minutes long 2) View is 90 lines high starting with 30 lines visible. - 60 lines left to see. 3) 180 seconds / 60 lines = 3 seconds per line. 4) Every 3 seconds automatically scroll down one line. It won't be perfect, but I'd bet it'd work more often than not. Rob - amet - 2010-01-20 08:55 dny238 Wrote:Got it. I was overthinking it. sure, unless you like pink floyd ![]() I have done something similar, having some issues with it so it was never released. I might revisit the problem when I have some time. In a week or two. Zeljko - dny238 - 2010-01-20 13:46 Amet Wrote:sure, unless you like pink floyd Thanks! Sounds good. I have some time to bang away on some sample code, if you want help. Many hands make light work. Rob - ZorMonkey - 2010-01-21 04:19 I fixed the bug where it'd display lyrics for the wrong song in certain cases. But, that snowballed into a lot of refactoring. Nothing major, just stuff like making the "show_lyrics" method show lyrics, and that's it. The biggest change is that I created classes for song and lyrics information, which helped fix the bug I mentioned. Still not sure I'm 100% happy with it, but its a lot easier for me to follow now. I zipped up everything and put the source online. Do with it what you will. My next project is to help the scraper a little. I want to parse the lyrics better (to pick up italics/bold formatting), and I have some ideas to get lyrics more reliably and quicker. - ZorMonkey - 2010-01-23 03:25 ZorMonkey Wrote:I fixed the bug where it'd display lyrics for the wrong song in certain cases. But, that snowballed into a lot of refactoring. Nothing major, just stuff like making the "show_lyrics" method show lyrics, and that's it. The biggest change is that I created classes for song and lyrics information, which helped fix the bug I mentioned. Still not sure I'm 100% happy with it, but its a lot easier for me to follow now. I zipped up everything and put the source online. Do with it what you will. Well, these changes work like crap on an Xbox. The UI and everything freezes up for a few seconds when switching songs. It seemed okay on Windows. BOOOO. I'll have to see about that - xbmcmomomo - 2010-01-24 01:54 I have some tracks that dont have mp3 id tags. (the same as when artist tag is missing). Is it possible to just search on the filename eg: Life_on_your_own.mp3 to do a search on : http://lyrics.wikia.com/Special:Search?search=life+on+your+own&go=1 then just scrape the first result (it is most likely to be the correct one!!). <ul class='mw-search-results'> <li><a href="http://lyrics.wikia.com/wiki/The%20Human%20League%3ALife%20On%20Your%20Own" </li> |