Trim or extract substring from "$INFO[ListItem.Label]"?
#1
Greetings!

Within a skin's xml are you able to trim labels (or perform string manipulations)?

What I have is a set of filenames similar to "<REFERENCE_NO>-<TITLE>-<SOMETHING_ELSE>.mkv" (which is returned when you use $INFO[Listitem.Label] I believe). At the moment these are listed out like this and it is workable but I wanted to edit things so that I can split this up with carriage returns making it easier to visualize. So it would instead look more like:-

<TITLE>
<REFERENCE_NO>-<SOMETHING_ELSE>

However I haven't quite figured out if this is possible and if it is how you would do this. This isn't information that is in separate tags nor a library (for reasons I won't go into, I don't use a library), it's literally just in the filenames.

Am I overlooking something trivial?

I've searched for substring (which is a conditional check only type statement I believe) or trim but no luck so far. Hoping the veterans would be able to throw me a bone and help me out.

Thanks in advance
Reply
#2
not possible, no methods available to manipulate strings on skin level.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#3
Dang, thanks for the quick reply.
Reply

Logout Mark Read Team Forum Stats Members Help
Trim or extract substring from "$INFO[ListItem.Label]"?0