2016-05-18, 11:09
(2016-05-18, 10:18)Torben Wrote: Sorry abput that. I re-read and I still dont understand how it is not forced. You can disregard my comment if you like. As i still see it you want to mix the favourite info with the title and handle that formatting script-side instead of skin-side. I would personally prefer if you choose to handle all formatting skin-side if this is a general plugin/script.
A script for a specific skin can do whatever it pleases ofcourse.
This is an example of how things should be (in my opinion), to illustrate nothing is forced:
a) Python script can do label formatting, for example:
Code:
rom_name = '[COLOR violet]Name of the ROM (Japan)[/COLOR]'
b) Kodi MUST NOT take the formatting when doing the alphabetical order, if there is any formatting.
c) Skin will get the last word. Suppose the skin does label formatting (by the way, most skins don't...), for example putting labels in red. The total label before rendering will be:
Code:
rom_name = '[COLOR red][COLOR violet]Name of the ROM (Japan)[/COLOR][/COLOR]'
It is easy to parse the formatting from inner to outer, so outer formatting (done by the skin) overrides the inner formatting (Python code), so the final formatting is what the skin does. If the skin does not touch the formatting, then the final formatting is what the Python code does.