[mythtv-users] HDHR Prime Success & Question

Eric Sharkey eric at lisaneric.org
Wed Oct 12 13:31:28 UTC 2011


On Tue, Oct 11, 2011 at 9:09 PM, Robert McNamara
<robert.mcnamara at gmail.com> wrote:
> This wasn't what he was asking about, though.  He was asking about his
> channels on his Prime.  He wasn't asking if the Prime would be
> maintaining the channels for his other devices.

You're right, but that wasn't clear to me based on his initial post.
You could read it either way.

> Why would you want to use the same source?  The reason most (all)
> Prime purchasers will buy it is because it gives them more programming
> than a regular ClearQAM tuner.  Therefore they *can't* use the same
> video source.  They have different capabilities.
>
> And who cares how many sources you have, anyway?

I care.  Having more sources makes the mythweb channel editor page
unwieldy.  Having more sources means that there's more to keep track
of.

You really have to log in to mysql directly and periodically run
moderately complicated sql commands like:

  update channel cl join channel cr on cl.channum=cr.channum set
cl.callsign = cr.callsign where cl.sourceid = 8 and cr.sourceid = 9;

to make sure that the clear qam callsigns match the prime callsigns to
avoid duplicate recordings of generic episodes.  That assumes, of
course, that you've set all your channum's correctly.  I've been doing
that with this awk script on the hdhomerun_config channel scan output:

#!/usr/bin/awk -f

/^SCANNING/ { if (match($0, /([0-9]+)\)\'/, freqs)) freqid = freqs[1]
; else freqid = 0; }

/^PROGRAM/ { if (freqid && !(/encrypted/) && !($3 ~ /\./) && ($3 !=
0)) { pid = substr($2, 1, length($2) - 1); print "UPDATE channel SET
channum = " $3 " WHERE sourceid = 8 AND freqid = " freqid " AND
serviceid = " pid ";"}}

It would be a lot lot simpler from a maintenance and user friendliness
point of view if the channel table just had a couple of extra columns
to track both the virtual and physical channel numbers and also which
channels are clear and which aren't and have the scheduler act on that
accordingly, rather than needing to duplicate the channel in two
different sources and make sure that they're in sync.

Eric


More information about the mythtv-users mailing list