2017-10-31, 06:31
Hi, I'm modifying a plugin that is written in Python. It builds an EPG and I'm trying to set up a variable width field.
From what I've read:
1. Python can't use the EPGGRID hence the hand made grid.
2. $INFO[] cannot be used in height/width fields.
I've tried using includes/include but it doesn't seem to work, at all. Is this another python limitation? I've tried some SUPER simple includes like <include name='width300'><width>300</width></include> and <include content=width300></width>.
I've tried passing integers through from the plugin and was using item.setInfo('video', {'duration': int}) which the compiler would accept but i couldn't retrieve it on the other side, i couldn't figure out how. That's when i read point 2 and stopped this path.
Any help would be much appreciated!!
Edit, testing on 17.5/18 on windows. Behaviour of both are different when the width is fed a string it seems too.
Edit, it's technically a 'script' not a plugin i believe.
From what I've read:
1. Python can't use the EPGGRID hence the hand made grid.
2. $INFO[] cannot be used in height/width fields.
I've tried using includes/include but it doesn't seem to work, at all. Is this another python limitation? I've tried some SUPER simple includes like <include name='width300'><width>300</width></include> and <include content=width300></width>.
I've tried passing integers through from the plugin and was using item.setInfo('video', {'duration': int}) which the compiler would accept but i couldn't retrieve it on the other side, i couldn't figure out how. That's when i read point 2 and stopped this path.
Any help would be much appreciated!!
Edit, testing on 17.5/18 on windows. Behaviour of both are different when the width is fed a string it seems too.
Edit, it's technically a 'script' not a plugin i believe.