No stringcompare(info,info) ?
#1
According the wiki we can only compare info against a string but are there plans, or if not, is it possible to add the ability to compare info against info?

Thanks.
Reply
#2
heh I was actually discussing this with jmarshall the other day but I was more on a info against a $LOCALIZE. And his veiw was whats the use of it.

So plead your case better and tell him why it would be good
Reply
#3
I want to use it to compare ListItem.Title and LatestMovie.1.Title so if they match I can add a 'NEW' icon to it.
Reply
#4
Jezz_X Wrote:heh I was actually discussing this with jmarshall the other day but I was more on a info against a $LOCALIZE. And his veiw was whats the use of it.

So plead your case better and tell him why it would be good

This is exactly what I needed the other day (comparing against $LOCALIZE). I eventually had to implement a work around that wasn't as elegant but met my needs.

Please add this.
Reply
#5
Info and localize are two different beasts. The localize stuff should be reasonably easy to do as it's a static string.

The info, not so much - I'd have to consider how to handle that case.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#6
$LOCALIZE parsing should be handled by r24619.

$INFO handling is trickier. I've done a patch and posted it:

http://trac.xbmc.org/ticket/7713

I'd appreciate testing.

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#7
Thanks Jon.
Reply
#8
I'll test as soon as I can and report back.

Thanks as ever.
Reply
#9
I don't suppose anyone's got a build with this in I can use for testing purposes do they?

Thanks.
Reply
#10
hitcher you should look into compiling your own its all done with free software so wont cost you anything but time downloaded and install and you will never regret being able to test all those latest fixes for your skins
Reply
#11
Time's a bit precious at the moment but I might have to look in to it again.
Reply
#12
I see this has been committed but I can't get it to work.

Here's my compare string -
Code:
<visible>stringcompare($INFO[ListItem.Title],$INFO[Window(0).Property(LatestMovie.1.Title)])</visible>
which should display the white circle in this test like this -

Image

but instead it doesn't -

Image

as you can see I'm also using this code to display both values -
Code:
<label>$INFO[ListItem.Label][CR]$INFO[Window(0).Property(LatestMovie.1.Title)]</label>
as seen here -

Image

So I know they're getting the correct info but the stringcompare doesn't work.

Thanks.
Reply
#13
no $INFO[] works good here
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#14
Thanks, that fixed it.
Reply

Logout Mark Read Team Forum Stats Members Help
No stringcompare(info,info) ?0