[mythtv] Dynamic menus

Andrei Tanas andrei at tanas.ca
Mon Dec 1 22:24:35 UTC 2008


I'd like to propose a simple piece of functionality that allows to generate
dynamic menus. I'm using it successfully to dynamically build menus for an
online streaming service.

The idea is simple: if the <action> tag inside the menu <button> defines a
MENU, but the parameter starts with the '`' character (same as bash shell
command substitution), rather than treating this as a path to another menu
file, we execute the external process, capture its standard output stream,
and use the result to load the menu.

Please see ticket http://svn.mythtv.org/trac/ticket/5954 for details and
proposed patch.
The patch is quite simple, it only adds less than 50 lines of code, the
rest is indentation changes.


More information about the mythtv-dev mailing list