Replies: 9 comments 1 reply
-
This is somewhat similar to the handling of "Unknown" for the That approach could be extended to have an Regarding Point 1, an "alternate" is possible. Although, for cover art specifically, one would have to either pass info to or get info back from However, all of the above may not be relevant if special treatment via a lookup dictionary (Idea #16) is implemented. Since the user-specified callback functions would all be in Python, they could use any desired conditions and have any number of fallback approaches that the user might want to implement. Both of the above (as well as other proposed Ideas) could be implemented with that approach. |
Beta Was this translation helpful? Give feedback.
-
For the second item in the original post, I think (with kodi_panel v1.27) it should now be possible to specify
for Player.Chapter. More sophisticated conditional behavior would best be handled by writing a new string manipulation function and adding it to the |
Beta Was this translation helpful? Give feedback.
-
The above should now be possible, albeit with some Python programming. One could add a new entry to the The new element-drawing callback function could invoke
The above is admittedly non-trivial! Since I haven't tried implementing it, there could also be a few holes in my description. For those reasons, I'll try to ponder how easy it would be to add |
Beta Was this translation helpful? Give feedback.
-
All these possibilities should work for my exemples but is is not exactly the feature I had in mind. I will try to re-formulate it by explaining what I will need to create in order to have the wanted behaviour: Create a new callback functions family:
This
in my exemple track number would be displayed only if chapter count returned by kodi infolabel is >1, otherwise it would be not displayed and an other layout:
in my exemple time would be displayed only if chapter count returned by kodi infolabel is =<1, otherwise it would be not displayed The combination of these two One could also imagine more than 2 retrun value for This feature would allow simpler writing of the |
Beta Was this translation helpful? Give feedback.
-
Ah, I think I understand now. I've opened Issue #36. Per what I post there, I don't believe TOML supports exactly the syntax you propose. My thought would be to permit a
where |
Beta Was this translation helpful? Give feedback.
-
See update posted to Issue #36 |
Beta Was this translation helpful? Give feedback.
-
Implemented in kodi_panel v1.29. |
Beta Was this translation helpful? Give feedback.
-
I used this function to display timeshift offest if higher than 10s nico1080@ab5874e Also for chapter test : nico1080@60503a5 |
Beta Was this translation helpful? Give feedback.
-
another exemple for showing thumb or plot if thumb is empty b56f56c |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Having a feature that will display different content based on a condition.
Exemples:
This feature will allow to do:
If Player.ChapterCount>1, then display something (eg, Chapter xx/yy, {chapter name}) else display nothing
Beta Was this translation helpful? Give feedback.
All reactions