Mailing List Archive

Customizing recording info
I am using the MythCenter theme, which I like except I want the brief
program info in the recordings listing to include original air date. This
is available in the detailed info (displayed with the "i" key), but I want
it shown in the basic listing.

Is it feasible to customize this? I saw the wiki page about customizing
themes but it applied to menus, not this granular of a change. If it is
feasible can anyone point me in the right direction?
Re: Customizing recording info [ In reply to ]
On Tue, 17 Nov 2020 20:28:24 -0700, you wrote:

>I am using the MythCenter theme, which I like except I want the brief
>program info in the recordings listing to include original air date. This
>is available in the detailed info (displayed with the "i" key), but I want
>it shown in the basic listing.
>
>Is it feasible to customize this? I saw the wiki page about customizing
>themes but it applied to menus, not this granular of a change. If it is
>feasible can anyone point me in the right direction?

It looks like it should be possible. You would need to make a copy of
the /usr/share/mythtv/themes/MythCentre-wide directory under:

$HOME/.mythtv/themes

Then rename the theme. I call mine MythCenter-wide-JSW. So rename
the directory, and then in its themeinfo.xml file, also change the
<name> field. Then find where the recordings listings are done in the
recordings-ui.xml file. If you search for filesize_str that is where
that sort of data is displayed. Somewhere around there try adding a
new field to display the original airdate. You may need to adjust the
locations and widths of other fields to allow this. Look here:

https://www.mythtv.org/wiki/Recordings-ui.xml

for the things you can put in recordings-ui.xml. There seem to be two
options for what you want: originalairdate or shortoriginalairdate.

Be aware that there is no mechanism to keep custom themes up to date.
You need to check the original theme directory occasionally and see if
anything has changed. I find the easiest way to do that is to keep a
copy of the original theme directory somewhere else (eg under
$HOME/.mythtv/themes as MythCentre-wide-original) and just do a diff
between the two copies. You can also just check the timestamps in the
original theme directory. When things change, you need to propagate
those changes to your custom version. I keep meaning to automate the
diff process so that it will be done from cron.daily and email me when
it sees a change, but I have not got around to doing that yet.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Customizing recording info [ In reply to ]
On 11/17/20 11:19 PM, Stephen Worthington wrote:
> On Tue, 17 Nov 2020 20:28:24 -0700, you wrote:
>
>> I am using the MythCenter theme, which I like except I want the brief
>> program info in the recordings listing to include original air date. This
>> is available in the detailed info (displayed with the "i" key), but I want
>> it shown in the basic listing.
>>
>> Is it feasible to customize this? I saw the wiki page about customizing
>> themes but it applied to menus, not this granular of a change. If it is
>> feasible can anyone point me in the right direction?
> It looks like it should be possible. You would need to make a copy of
> the /usr/share/mythtv/themes/MythCentre-wide directory under:
>
> $HOME/.mythtv/themes
>
> Then rename the theme. I call mine MythCenter-wide-JSW. So rename
> the directory, and then in its themeinfo.xml file, also change the
> <name> field. Then find where the recordings listings are done in the
> recordings-ui.xml file. If you search for filesize_str that is where
> that sort of data is displayed. Somewhere around there try adding a
> new field to display the original airdate. You may need to adjust the
> locations and widths of other fields to allow this. Look here:
>
> https://www.mythtv.org/wiki/Recordings-ui.xml
>
> for the things you can put in recordings-ui.xml. There seem to be two
> options for what you want: originalairdate or shortoriginalairdate.
>
> ....

I use the Mythbuntu theme and it shows the original airdate (when it is
not the same as the recording date) in the info at the bottom when a
show in the list is selected.  I presume it could be included in another
column in the list, itself, but I think that might get a bit crowded.

Dave D.


_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Customizing recording info [ In reply to ]
On 2020-11-18 2:19 a.m., Stephen Worthington wrote:
> You may need to adjust the
> locations and widths of other fields to allow this. Look here:
>
> https://www.mythtv.org/wiki/Recordings-ui.xml
>
> for the things you can put in recordings-ui.xml. There seem to be two
> options for what you want: originalairdate or shortoriginalairdate.
>
> Be aware that there is no mechanism to keep custom themes up to date.
> You need to check the original theme directory occasionally and see if
> anything has changed. I find the easiest way to do that is to keep a
> copy of the original theme directory somewhere else (eg under
> $HOME/.mythtv/themes as MythCentre-wide-original) and just do a diff
> between the two copies. You can also just check the timestamps in the
> original theme directory. When things change, you need to propagate
> those changes to your custom version. I keep meaning to automate the
> diff process so that it will be done from cron.daily and email me when
> it sees a change, but I have not got around to doing that yet.


Since theme updates are not pushed, you need only worry if you pull the
theme to get an update. I keep a copy of 'my' adjusted theme in my
/home/mythtv folder and just apply the file to the updated myth setup as
required. I am not sure that I even bothered to diff the new downloaded
theme with the old version before applying my file. I have made a number
of small adjustments to text placements in the theme to avoid details
being cut off where the allowed space is actually too small.


Search in the recordings-ui.xml file for 'basetextarea'. You will find a
section where various items are derived from this parent definition. You
will see where they are placed in the visual field. (Note that you can
inadvertently put stuff outside the visible box, which is *very*
disconcerting when you are playing around.)

Your best bet is to add the info to 'description' in this section:

<textarea name="description" from="basetextarea">
<area>30,480,885,210</area>
<multiline>yes</multiline>
<scroll direction="vertical" />
<cutdown>no</cutdown>
<template>%"|SUBTITLE|" %%(|STARS|) %%DESCRIPTION%</template>
</textarea>

The area numbers are: horizontal offset, then vertical offset from top
left of the screen, then horizontal extent, vertical depth from the
offset point. 'description' is a large working space so you very well
could get away with just adding '%%ORIGINALAIRDATE%' to the <template> line.

Geoff
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Customizing recording info [ In reply to ]
On Wed, 18 Nov 2020 16:31:49 -0500, you wrote:

>Since theme updates are not pushed, you need only worry if you pull the
>theme to get an update. I keep a copy of 'my' adjusted theme in my
>/home/mythtv folder and just apply the file to the updated myth setup as
>required. I am not sure that I even bothered to diff the new downloaded
>theme with the old version before applying my file. I have made a number
>of small adjustments to text placements in the theme to avoid details
>being cut off where the allowed space is actually too small.

Some theme updates do get pushed as they are in the base MythTV
packages. I think MythCenter-wide is one of these.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Customizing recording info [ In reply to ]
On Wed, Nov 18, 2020, 8:02 PM Stephen Worthington <stephen_agent@jsw.gen.nz>
wrote:

> On Wed, 18 Nov 2020 16:31:49 -0500, you wrote:
>
> >Since theme updates are not pushed, you need only worry if you pull the
> >theme to get an update. I keep a copy of 'my' adjusted theme in my
> >/home/mythtv folder and just apply the file to the updated myth setup as
> >required. I am not sure that I even bothered to diff the new downloaded
> >theme with the old version before applying my file. I have made a number
> >of small adjustments to text placements in the theme to avoid details
> >being cut off where the allowed space is actually too small.
>
> Some theme updates do get pushed as they are in the base MythTV
> packages. I think MythCenter-wide is one of these.
>

Thanks everyone for the suggestions. Very helpful.

@daved I formerly used mythbuntu which I why I missed this info.

>
Re: Customizing recording info [ In reply to ]
On 2020-11-18 10:01 p.m., Stephen Worthington wrote:
> On Wed, 18 Nov 2020 16:31:49 -0500, you wrote:
>
>> Since theme updates are not pushed, you need only worry if you pull the
>> theme to get an update. I keep a copy of 'my' adjusted theme in my
>> /home/mythtv folder and just apply the file to the updated myth setup as
>> required. I am not sure that I even bothered to diff the new downloaded
>> theme with the old version before applying my file. I have made a number
>> of small adjustments to text placements in the theme to avoid details
>> being cut off where the allowed space is actually too small.
>
> Some theme updates do get pushed as they are in the base MythTV
> packages. I think MythCenter-wide is one of these.


I did not know that. I have seen no evidence of that happening, but if
it is auto-magic, I may not have noticed anything anyway. I will have to
do some spelunking to see what is actually happening although I don't
think anything did. At least I have not noticed anything. (Still running
myth v28 on Fedora 28 on the mythbox: It ain't boke so I ain't gonna
frix it!)

Geoff
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org