[mythtv-theming] Two <template> questions

Yeechang Lee ylee at pobox.com
Sat Aug 18 08:41:35 UTC 2012


In the description textarea, using

<template>%"|SUBTITLE|" %%(|ORIGINALAIRDATE|)\n%%YEARSTARS| %%DESCRIPTION%</template>

produces for a TV show with the proper metadata

    "Louder than Words" (Fri 17 Aug 2012)
    A lavish groundbreaking of the modernized O'Hare terminals...

and for a movie

    (2011, 8 stars) A teenage assassin faces startling revelations...

Two questions:

1) I'd like to also have season/episode data appear in a certain
way. Using the 00x00 field, such as

<template>%"|SUBTITLE|" %%00X00| %%(|ORIGINALAIRDATE|)\n%%YEARSTARS| %%DESCRIPTION%</template>

produces for a TV show with the proper metadata

    "Louder than Words" 2x01 (Fri 17 Aug 2012)
    A lavish groundbreaking of the modernized O'Hare terminals...

How do I instead have appear:

    "Louder than Words" (2x01, Fri 17 Aug 2012)
    A lavish groundbreaking of the modernized O'Hare terminals...

or, if no season/episode data is available:

    "Louder than Words" (Fri 17 Aug 2012)
    A lavish groundbreaking of the modernized O'Hare terminals...

That is, the equivalent of not using 00x00?

2) Regardless of whether #1 is feasible, I'd like to fix a minor issue
   with the first-listed template line. If no original airdate is
   available, the template outputs

    "Louder than Words" A lavish groundbreaking of the modernized...

Note the lack of a line break between subtitle and description
text. How do I remedy this without adding extra line breaks in other
circumstances (such as by using \n within the %DESCRIPTION% field
instead).

PS - Is the above syntax documented anywhere officially? I've read the
few mythtv-theming messages on the topic and
http://www.mythtv.org/wiki/Recordings-ui.xml.


More information about the mythtv-theming mailing list