Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

Adding new fields to a theme?

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


alex at owal

Nov 21, 2009, 5:15 AM

Post #1 of 5 (410 views)
Permalink
Adding new fields to a theme?

I understand that MthTV 0.22 has moved more towards the mythui library which
will be better in the long term. To this end only a few themes have been
ported to this new standard - and these are mostly Widescreen themes.

Now I have a problem. None of the themes I can find will tell me the size of
the file. I used this feature a lot in deciding what to delete and what
didn't record properly. (I have a lot of zero length recordings).

Looking at the themes I am guessing this is something to do with the
templates like this

thethemes/Mythbuntu$ grep SUBTITLE *
recordings-ui.xml: <template>%|"SUBTITLE|"% %STARS%
%DESCRIPTION%</template>
schedule-ui.xml:
<value>%|"SUBTITLE|"%\n%YEARSTARS%%DESCRIPTION%</value>
schedule-ui.xml:
<template>%|"SUBTITLE|"%\n%YEARSTARS%%DESCRIPTION%</template>
schedule-ui.xml: <template>%|"SUBTITLE|"%\n%LONGREPEAT%%STARS|
%%DESCRIPTION%</template>


etc

So I am guessing that I can add a new field in to the template and there you
go. Is that possible?

So I go hunting around for documentation and I find a little on the wiki
such as

http://www.mythtv.org/wiki/MythUI_Theme_Development#Tutorials

but very very little of it says whether it is valid before 0.22, after 0.22,
or both!



(I'm using Ubuntu 9.10 as the back end - and sometimes use it as the front
end too)

Alex


alex at owal

Nov 21, 2009, 5:20 AM

Post #2 of 5 (386 views)
Permalink
Re: Adding new fields to a theme? [In reply to]

Part of my problem would be solved by this patch

http://svn.mythtv.org/trac/ticket/7336

But I would still like to be able to add file size to the theme myself.

Alex


On Sat, Nov 21, 2009 at 1:15 PM, Alex McLintock <alex [at] owal> wrote:

> I understand that MthTV 0.22 has moved more towards the mythui library
> which will be better in the long term. To this end only a few themes have
> been ported to this new standard - and these are mostly Widescreen themes.
>
> Now I have a problem. None of the themes I can find will tell me the size
> of the file. I used this feature a lot in deciding what to delete and what
> didn't record properly. (I have a lot of zero length recordings).
>
> Looking at the themes I am guessing this is something to do with the
> templates like this
>
> thethemes/Mythbuntu$ grep SUBTITLE *
> recordings-ui.xml: <template>%|"SUBTITLE|"% %STARS%
> %DESCRIPTION%</template>
> schedule-ui.xml:
> <value>%|"SUBTITLE|"%\n%YEARSTARS%%DESCRIPTION%</value>
> schedule-ui.xml:
> <template>%|"SUBTITLE|"%\n%YEARSTARS%%DESCRIPTION%</template>
> schedule-ui.xml: <template>%|"SUBTITLE|"%\n%LONGREPEAT%%STARS|
> %%DESCRIPTION%</template>
>
>
> etc
>
> So I am guessing that I can add a new field in to the template and there
> you go. Is that possible?
>
> So I go hunting around for documentation and I find a little on the wiki
> such as
>
> http://www.mythtv.org/wiki/MythUI_Theme_Development#Tutorials
>
> but very very little of it says whether it is valid before 0.22, after
> 0.22, or both!
>
>
>
> (I'm using Ubuntu 9.10 as the back end - and sometimes use it as the front
> end too)
>
> Alex
>


knight at teksavvy

Nov 21, 2009, 5:21 AM

Post #3 of 5 (395 views)
Permalink
Re: Adding new fields to a theme? [In reply to]

Hi!

You might wish to post your question on the mythtv-theming mailing list.

re: http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-theming

Good luck!

Nick
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


robert.mcnamara at gmail

Nov 21, 2009, 7:14 AM

Post #4 of 5 (390 views)
Permalink
Re: Adding new fields to a theme? [In reply to]

On Sat, Nov 21, 2009 at 5:15 AM, Alex McLintock <alex [at] owal> wrote:
>
> thethemes/Mythbuntu$ grep SUBTITLE *
> recordings-ui.xml:            <template>%|"SUBTITLE|"% %STARS%
> %DESCRIPTION%</template>
> schedule-ui.xml:
> <value>%|"SUBTITLE|"%\n%YEARSTARS%%DESCRIPTION%</value>
> schedule-ui.xml:
> <template>%|"SUBTITLE|"%\n%YEARSTARS%%DESCRIPTION%</template>
> schedule-ui.xml:            <template>%|"SUBTITLE|"%\n%LONGREPEAT%%STARS|
> %%DESCRIPTION%</template>
>
> So I go hunting around for documentation and I find a little on the wiki
> such as
>
> http://www.mythtv.org/wiki/MythUI_Theme_Development#Tutorials
>
> but very very little of it says whether it is valid before 0.22, after 0.22,
> or both!

That's a *little*? (And have you tried clicking the links to the
specific -ui.xml screens?)

All MythUI documentation is refers to the current released version.
Fields which refer only to the development version are in blue (like
it says at the top of the page).

The field you want is "filesize_str" which is referenced on the wiki
pages for both of the abovereferenced -ui.xml pages.

http://www.mythtv.org/wiki/Recordings-ui.xml
http://www.mythtv.org/wiki/Schedule-ui.xml

Robert
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mtdean at thirdcontact

Nov 22, 2009, 5:50 AM

Post #5 of 5 (356 views)
Permalink
Re: Adding new fields to a theme? [In reply to]

On 11/21/2009 10:14 AM, Robert McNamara wrote:
> On Sat, Nov 21, 2009 at 5:15 AM, Alex McLintock wrote:
>
>> thethemes/Mythbuntu$ grep SUBTITLE *
>> recordings-ui.xml: <template>%|"SUBTITLE|"% %STARS%
>> %DESCRIPTION%</template>
>> schedule-ui.xml:
>> <value>%|"SUBTITLE|"%\n%YEARSTARS%%DESCRIPTION%</value>
>> schedule-ui.xml:
>> <template>%|"SUBTITLE|"%\n%YEARSTARS%%DESCRIPTION%</template>
>> schedule-ui.xml: <template>%|"SUBTITLE|"%\n%LONGREPEAT%%STARS|
>> %%DESCRIPTION%</template>
>>
>> So I go hunting around for documentation and I find a little on the wiki
>> such as
>>
>> http://www.mythtv.org/wiki/MythUI_Theme_Development#Tutorials
>>
>> but very very little of it says whether it is valid before 0.22, after 0.22,
>> or both!
>>
>
> That's a *little*? (And have you tried clicking the links to the
> specific -ui.xml screens?)
>
> All MythUI documentation is refers to the current released version.
> Fields which refer only to the development version are in blue (like
> it says at the top of the page).
>
> The field you want is "filesize_str" which is referenced on the wiki
> pages for both of the abovereferenced -ui.xml pages.
>
> http://www.mythtv.org/wiki/Recordings-ui.xml
> http://www.mythtv.org/wiki/Schedule-ui.xml

And note that

a) file size /is/ available in the program details screen (hit U while
on the recording in Watch Recordings or Delete Recordings)--just like in
0.21-fixes. However, you have to go to page 2 of the details.
b) the Delete Recordings screen has no capabilities that the Watch
Recordings screen lacks--they're completely identical, so anything that
can go in Delete Recordings can go in Watch Recordings. This is why the
redundant screen was removed.

And before you say, "But it's just one more screen for the
completely-overworked themers to theme and would allow me to only show
<random info> some of the time," make sure you create a /complete/
MythUI theme. And, perhaps the people who feel that the Delete
Recordings screen should be resurrected should do exactly the same.
Once they do, the "just one more screen," takes on a whole different
meaning. :)

Mike

(I have not done a complete MythUI theme, but I've watched others do so
and understand the investment of time required to do so.)
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.