[mythtv-users] MythTV Jobs and Card ID

Chris Pinkham cpinkham at bc2va.org
Tue Apr 14 04:18:08 UTC 2009


* On Mon Apr 13, 2009 at 11:15:27PM -0400, f-myth-users at media.mit.edu wrote:
>> From: Chris Pinkham <cpinkham at bc2va.org>
> 
>> If you test this, I think you'll find that %CARDID% is always 0.
>> We don't store the cardid that a recording was made on in the database,
>> ProgramInfo::cardid is used mainly by the scheduler for scheduling
>> recordings.
> 
> Is there some reason for this, btw?  Users often complain that they'd
> like to know what tuner recorded something, generally for debugging

The biggest reason is probably that this information is in the logs
unless you're running without VB_GENERAL set (the default is on).
I get the following in mine:

2009-04-13 21:59:37.555 Started recording: CSI: Miami "Chip/Tuck":
channel 4031 on cardid 10, sourceid 4
2009-04-13 22:02:06.894 Started recording: Castle "Always Buy Retail":
channel 2013 on cardid 4, sourceid 2

These are printed out by the scheduler so they're in the master's logs.

Another reason I can think of is that cardid isn't a static identifier.
It can change if you move cards around or delete all or some in the
process.  One could argue that chanid is similar, but not so much.

--
Chris


More information about the mythtv-users mailing list