mattblovell / kodi_panel

Front panel LCD display for Kodi (via JSON-RPC)
MIT License
12 stars 5 forks source link

Permit an `exclude` value (or values) for textfields #29

Closed mattblovell closed 3 years ago

mattblovell commented 3 years ago

Permit each field's dictionary within a layout to specify a

exclude = <string>

to specify a value that should not be displayed. The artist element callback function, for instance, currently has special code that checks for an artist value of "Unknown", using it to blank out the string. Having more-general exclude functionality would permit text_fields() to do that work.

mattblovell commented 3 years ago

Added in commit 36096508df812793353b24df334f2514d9ea1159, which should get released as v1.27.