[mythtv-users] HD Homerun Prime Scripting

Kirk Bocek t004 at kbocek.com
Sun Oct 16 05:12:03 UTC 2011

On 10/15/2011 10:04 PM, Ozzy Lash wrote:
> On Sat, Oct 15, 2011 at 11:08 PM, Kirk Bocek<t004 at kbocek.com>  wrote:
>> On 10/15/2011 6:29 PM, Ozzy Lash wrote:
>>> 2. What are the required fields in the database for tuning, and what
>>> needs to match for recordings between tuner types to work correctly?
>>> Is it only the xmltvid? Do you need the callsign to match?
>>> I think there were a few more, but that was a start of the issues that
>>> I was thinking of.
>> It's actually really straightforward. I already have the script working
>> and will share it here. I plan on running it nightly. Should save me
>> some broken recordings in the future.
>> The only feature it doesn't have at the moment is to automatically add
>> records to dtv_multiplex if frequencies are missing. That is, if a
>> virtual channel moves to a physical channel you've never used before,
>> you'll have to manually add the dtv_multiplex record before my script
>> will work.
>> I suppose I could just have the script copy another record from the same
>> sourceid and just change the frequency field. That's what I've done on
>> my system and it works. There is a *whole* lot of stuff in there that I
>> have no idea what it does.
>> Could one of the Myth wizards here give me a little guidance on
>> dtv_multiplex? Is copying an existing record safe?
> Looking at the source to scte65scan, all it seems to do is the following:
>        printf("INSERT INTO dtv_multiplex SET
> sistandard='atsc',mplexid=%d,frequency=%d,modulation='qam_256',sourceid=%d;\n",
> i, cds->cd[i], outfmt->myth_srcid);
> So it seems it leaves everything but the above fields at their
> default, sets the sistandard to atsc, the modulation to qam_256.

That's basically what I'm seeing too. But I'd like to hear from one of 
the wizards here that that's all I need to do.

Here's my first shot at the script. I'm sending it to the list as an 
attachment. Not sure if it's going to get scrubbed or not. Let me know 
what you think. I'd love some feedback.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: prime_chan_update.pl
Url: http://www.mythtv.org/pipermail/mythtv-users/attachments/20111015/f5bf7adf/attachment-0001.pl 

More information about the mythtv-users mailing list