jez500/chorus — pull request #33 by thorstenhirsch (2014-05-05 14:12:56+00:00)
Title: uncolorText: removes color tags from movie title/label

Many streamed movie titles contain tags like [COLOR=ffee00]foo[/COLOR] that are shown as raw text in Chorus. I think it's better for Chorus NOT to interpret these tags since (custom) colorized fonts interfere with the beautiful colors of Chorus. So my suggestion is to replace these color tags with a regular expression to get rid of them. And that's what I added in the code of this pull request.

This time I tested it on my xbmc installation (android) ...and it works. :-)
Well, I applied my uncolorText function primarily to video contents and functions for that. I don't stream audio contents, so I don't know if it's worth extending the usage of uncolorText to those functions. Actually some places where I make use of uncolorText are already used for all content types.

If you can spare some seconds please help me with a few questions:
- I struggled with xbmc's package cache (didn't know that it exists) and wondered why my browser always used old versions of chorus.min.js; is it possible to disable xbmc package cache?
- I also wondered why src/js/utils.js contains the app.helpers namespace while src/js/helpers/* does not contain app.helpers, but app.ui for example. Actually I tried to implement uncolorText in src/js/helpers/ui.js first, but it seems that I can't access app.ui in the views. Is that correct? If so my question is: why can't I access app.ui in the views?

P.S.: Thank you so much for the keyboard bindings in v0.3.6!