[mythtv-users] Not using both tuners to full effect?

David Whyte david.whyte at gmail.com
Fri Jan 14 09:14:01 EST 2005


okies, I have done it :D  It required a change to the
program_detail.php page of the default theme, which is found under
mythweb/themes/Default/program_detail.php

what was...

<td><input type="input" name="startoffset" size="1" value="<?php echo
htmlentities($this_program->startoffset) ?>"></td>

...became...

<td><input type="input" name="startoffset" size="1" value="<?php if
(htmlentities($this_program->startoffset) > 0) { echo
htmlentities($this_program->startoffset); } else { echo '2'; }
?>"></td>

...for the start offset value.  Identical for the endoffset value.

I guess for this to work in all themes, this logic should be lifted up
into the object model, but I don't know much about that and I a happy
with this fix for now so it will do.

Attached is the new file for those that might care.  

Dave - doing his first bit of Open Source coding :D

On Fri, 14 Jan 2005 23:58:39 +1000, David Whyte <david.whyte at gmail.com> wrote:
> once you find the php script that causes the recording details to be
> shown, its just an attribute of the input field.  Its been a while
> since I touched PHP, but I will take a look now.  I think this is a
> great idea :D
> 
> 
> On Fri, 14 Jan 2005 07:38:51 -0500, James Pifer <jep at obrien-pifer.com> wrote:
> > > Thanks for pointing out that thread. I'd started to read it but it
> > > wasn't really relevant at the start so I didn't get all the way to the
> > > end.
> > >
> > > Seems crazy that I have a second tuner sitting completely unused while
> > > the box chops off the end of a program so it can use only one tuner.
> > > Also seems crazy that I have a global setting (most convenient - means
> > > I don't have to faff around with early/late settings for each
> > > recording) and then that option is chucked away when it needn't be.
> > >
> > > Sigh.
> > >
> > > So, my options are:
> > > 1) Set overrun-underrun settings for *each* recording manually and
> > > forget all about the global ones.
> > > 2) Wait for a patch - unlikely to get into CVS I would guess.
> > > 3) Learn C++ and write my own patch.
> > >
> > > Oh well.
> >
> > I've wondered about the exact same issue. Just seems to make sense that
> > it would use the other tuner since it's sitting idle. Anyway, I've gone
> > through my recordings and manually set the start early/end late fields.
> > I do all my scheduling from the web interface.
> >
> > A possible workaround that would work for me would be to simply have
> > mythweb automatically default those two fields to specific values.
> >
> > For example:
> > Start Early (minutes):          2
> > End Late (minutes):             1
> >
> > I looked at program_detail.php but it wasn't obvious on how this could
> > be done. Anyone know off the top of their head a simple way to do this?
> >
> > Thanks,
> > James
> >
> > 
> > _______________________________________________
> > mythtv-users mailing list
> > mythtv-users at mythtv.org
> > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> >
> >
> >
> 
> 
> --
> GMAIL is 'da bomb baby....YEAH
> 


-- 
GMAIL is 'da bomb baby....YEAH
-------------- next part --------------
A non-text attachment was scrubbed...
Name: program_detail.php
Type: application/octet-stream
Size: 18853 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-users/attachments/20050115/53f74dc7/program_detail.obj


More information about the mythtv-users mailing list