xbmc.getInfoLabel based on string value
#1
I'm pulling some infolabels into a script - i.e.

Labeltoread = xbmc.getInfoLabel("ListItem.Label").decode('utf-8')

which works fine.   However, in a few cases where the infolabel has been generated and assigned by the script.  Or to say it another way, the name of the label is not known at this time, but it is contained in a python string. I've been trying to use this (or small variations of adding quotes) - 

Labeltoread = xbmc.getInfoLabel(PythonString).decode('utf-8')

So my question is, am I trying to do something not supported?   Or do I just need to study python a little more and get the syntax right? 
(disclosure: the last meaningful code I wrote was in Fortran on floppy disks, but I try to keep up)

Thanks.
Reply


Messages In This Thread
xbmc.getInfoLabel based on string value - by illfigurethisout - 2019-05-17, 18:10
Logout Mark Read Team Forum Stats Members Help
xbmc.getInfoLabel based on string value0