<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6603.0">
<TITLE>RE: [mythtv-users] Newbie Question(s)</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Courier New">Hi</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">&gt;Hmmm... However, the RT site provides the data (as far as I can see) as </FONT>

<BR><FONT SIZE=2 FACE="Courier New">&gt;14 day &quot;chunks&quot; for each channel. There's no easy way to grab single </FONT>

<BR><FONT SIZE=2 FACE="Courier New">&gt;days from the data which they are (very graciously) providing.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Yep that's right. Instead of asking mythfilldatabase to grab the info from RT I use tv_grab_uk_rt directly like this:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">tv_grab_uk_rt --configfile channels.xmltv --output data.xml --days 1</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">This results is 14 days of data, but it means that it's only downloaded once. If you don't specify the --days 1 flag then you end up with the default of 14 days which means that you download 14 days of data 14 times.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">It's pretty easy to get it into Myth :</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">mythfilldatabase --file 1 0 data.xml</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">The xmltv config file is just a list of channels, I think Myth auto generates one in ~mythtv/.mythtv and names is sourceid.xml. Forgive me if I have that slightly wrong since I'm at work away from my servers.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">You could also use bleb (tv_grab_uk_bleb). I use a mixture of the 2 (bleb does some channels RT does not - BBC3 BBC4 and Radio) and hand built xmltv config files for each. I jut have a script that wraps it all together and run it from cron on the B/E.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Initially I was a bit upset with RT for pushing 14 days of data in a 1 day file but then as you point out, they're doing this for free so I think I can live with it.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">HTH</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Paul</FONT>
</P>


<BR>
********************************************************************<BR>
Important.<BR>
Confidentiality: This communication is intended for the above-named<BR>
person and may be confidential and/or legally privileged.<BR>
Any opinions expressed in this communication are not necessarily <BR>
those of the company. If it has come to you in error you must <BR>
take no action based on it, nor must you copy or show it to anyone; <BR>
please delete/destroy and inform the sender immediately.<BR>
<BR>
Monitoring/Viruses.<BR>
Orange may monitor all incoming and outgoing emails in line with <BR>
current legislation.  Although we have taken steps to ensure that <BR>
this email and attachments are free from any virus, we advise that <BR>
in keeping with good computing practice the recipient should ensure <BR>
they are actually virus free.<BR>
<BR>
Orange PCS Limited is a subsidiary of Orange SA and is registered <BR>
in England No 2178917, with its address at St James Court, <BR>
Great Park Road, Almondsbury Park, Bradley Stoke, Bristol BS32 4QJ.<BR>
********************************************************************<BR>
</BODY>
</HTML>