<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Configuration</title><link>https://sourceforge.net/p/tvguidefetch/wiki/Configuration/</link><description>Recent changes to Configuration</description><atom:link href="https://sourceforge.net/p/tvguidefetch/wiki/Configuration/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 12 Mar 2013 11:25:09 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/tvguidefetch/wiki/Configuration/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage Configuration modified by John Saunders</title><link>https://sourceforge.net/p/tvguidefetch/wiki/Configuration/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The configuration is stored as an XML file. The structure is very simple&lt;br /&gt;
and should be easy to understand. Everything is contained with within&lt;br /&gt;
&amp;lt;config&amp;gt;&amp;lt;/config&amp;gt; root node. The non-channel related configuration is&lt;br /&gt;
contained within the &amp;lt;connection&amp;gt;&amp;lt;/connection&amp;gt; node, and this is what&lt;br /&gt;
I will explain first.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="nt"&gt;&amp;lt;config&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;connection&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;cache-path&amp;gt;&lt;/span&gt;/etc/mythtv/.xmltv/tvguide_cache&lt;span class="nt"&gt;&amp;lt;/cache-path&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Specify the full path to a place where the guide data will be cached.&lt;br /&gt;
This directory must be able to be written to by the user that runs the&lt;br /&gt;
mythfilldatabase periodically, usually mythtv.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;    &lt;span class="nt"&gt;&amp;lt;base-url&amp;gt;&lt;/span&gt;http://www.oztivo.net/xmltv/&lt;span class="nt"&gt;&amp;lt;/base-url&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;base-url&amp;gt;&lt;/span&gt;http://xml.oztivo.net/xmltv/&lt;span class="nt"&gt;&amp;lt;/base-url&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;The basic list of mirrors to fetch guide data from. This list is only used&lt;br /&gt;
to fetch the initial channel list. The channel list specifies the mirrors&lt;br /&gt;
to use to fetch the guide data.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;    &lt;span class="nt"&gt;&amp;lt;channels&amp;gt;&lt;/span&gt;channels.xml.gz&lt;span class="nt"&gt;&amp;lt;/channels&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;datalist&amp;gt;&lt;/span&gt;datalist.xml.gz&lt;span class="nt"&gt;&amp;lt;/datalist&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;The names of the list of channels and datalist that is initially fetched&lt;br /&gt;
to start the process. Currently we don't use channels, but may do in the&lt;br /&gt;
future. Only datalist contains the list of available guide data, and that&lt;br /&gt;
is what we are interested in.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;    &lt;span class="nt"&gt;&amp;lt;username&amp;gt;&lt;/span&gt;PLACE_USERNAME_HERE&lt;span class="nt"&gt;&amp;lt;/username&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;password&amp;gt;&lt;/span&gt;PLACE_PASSWORD_HERE&lt;span class="nt"&gt;&amp;lt;/password&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;This is where your oztivo login details go. If you need to keep the login&lt;br /&gt;
details safe, ensure the config file is only readable by the user that runs&lt;br /&gt;
mythfilldatabase. I considered encrypting the password, however this would&lt;br /&gt;
give people a sense of security that didn't exist. By leaving the password&lt;br /&gt;
as plain-text people make an effort to ensure the permissions are correct.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;  &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;connection&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Next comes the  node which contains the list of&lt;br /&gt;
channels configured for this file.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;  &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;channelmap&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;channel&lt;/span&gt; &lt;span class="n"&gt;oztivoid&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&amp;quot;&lt;span class="n"&gt;Nine&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;Syd&lt;/span&gt;&amp;quot;&lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;The most basic channel simply specifies the id used by oztivo for the&lt;br /&gt;
channel. This causes the channel id in the generated file to be the same&lt;br /&gt;
as the oztivo id, and the display-name to be pulled from the oztivo channel&lt;br /&gt;
info.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;channel&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&amp;quot;&lt;span class="n"&gt;NINE&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;syd&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;freeview&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;au&lt;/span&gt;&amp;quot; &lt;span class="n"&gt;oztivoid&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&amp;quot;&lt;span class="n"&gt;Nine&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;Syd&lt;/span&gt;&amp;quot;&lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Next it is possible to specify what channel id to be used in the generated&lt;br /&gt;
file. XMLTV validation utilities enforce a DNS style dotted name, so here&lt;br /&gt;
I have specified a name for the Sydney freeview channel 9. By using a&lt;br /&gt;
consistent id your MythTV channels are isolated from your source of guide&lt;br /&gt;
data. Tomorrow I could use tv_grab_au_reg to source guide data from IceTv&lt;br /&gt;
and not need to edit my MythTV channels.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;    &lt;span class="nt"&gt;&amp;lt;channel&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;NINE.syd.freeview.au&amp;quot;&lt;/span&gt; &lt;span class="na"&gt;oztivoid=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Nine-Syd&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;display-name&amp;gt;&lt;/span&gt;Nine&lt;span class="nt"&gt;&amp;lt;/display-name&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/channel&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;It is possible to change the display-name of a channel if you don't like&lt;br /&gt;
the name given by oztivo, or the name is too long to be displayed by your&lt;br /&gt;
PVR.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;    &lt;span class="nt"&gt;&amp;lt;channel&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;NINE.syd.freeview.au&amp;quot;&lt;/span&gt; &lt;span class="na"&gt;oztivoid=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Nine-Syd&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;display-name&amp;gt;&lt;/span&gt;Nine&lt;span class="nt"&gt;&amp;lt;/display-name&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;lcn&amp;gt;&lt;/span&gt;9&lt;span class="nt"&gt;&amp;lt;/lcn&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/channel&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;It is also possible to specify the channel number using the &lt;br /&gt;
node. For channels that get created by MythTV using a TV tuner to scan&lt;br /&gt;
for channels, the channel number specified here doesn't get used. However&lt;br /&gt;
if you need to create a ton of channels for a Foxtel config, this is a&lt;br /&gt;
great help as the channel will be automatically created the first time&lt;br /&gt;
mythfilldatabase is run.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;    &lt;span class="nt"&gt;&amp;lt;channel&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;NINE.syd.freeview.au&amp;quot;&lt;/span&gt; &lt;span class="na"&gt;oztivoid=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Nine-Syd&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;display-name&amp;gt;&lt;/span&gt;Nine&lt;span class="nt"&gt;&amp;lt;/display-name&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;lcn&amp;gt;&lt;/span&gt;9&lt;span class="nt"&gt;&amp;lt;/lcn&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;icon&lt;/span&gt; &lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;http://www.lyngsat-logo.com/icon/tv/num/9network.gif&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/channel&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Furthermore it is possible to install an image for each channel. By&lt;br /&gt;
providing the URL where the image is located, MythTV will download and use&lt;br /&gt;
that image. The sample configs use the lyngsat-logo icon set, although you&lt;br /&gt;
are free to use any.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;    &lt;span class="nt"&gt;&amp;lt;channel&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;NINEHD.syd.freeview.au&amp;quot;&lt;/span&gt; &lt;span class="na"&gt;oztivoid=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;NineHD&amp;quot;&lt;/span&gt; &lt;span class="na"&gt;fillinid=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Nine-Syd&amp;quot;&lt;/span&gt; &lt;span class="na"&gt;quality=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;HDTV&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;display-name&amp;gt;&lt;/span&gt;Nine HD&lt;span class="nt"&gt;&amp;lt;/display-name&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;lcn&amp;gt;&lt;/span&gt;5&lt;span class="nt"&gt;&amp;lt;/lcn&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;icon&lt;/span&gt; &lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;http://www.lyngsat-logo.com/icon/tv/num/9network_hd.gif&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/channel&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Also it is possible to fill-in holes in the guide data with programs&lt;br /&gt;
from another channel. Currently the SevenHD and NineHD oztivo channels only&lt;br /&gt;
provide programs for the differences between the HD and SD channel. While&lt;br /&gt;
this is useful to prevent recording up-scaled programs (more storage&lt;br /&gt;
required without any better quality) it is not useful when watching TV live&lt;br /&gt;
and you want to know what program is running. By setting the fillinid&lt;br /&gt;
attribute to the id of the SD companion channel, any holes in the day will&lt;br /&gt;
be filled in with these programs. Note the quality attribute, this is for&lt;br /&gt;
future use. Some programs are marked as HDTV in oztivo yet are only listed&lt;br /&gt;
in the SD guide data because they air on both the HD and SD channel. I&lt;br /&gt;
intend to unmark these programs unless the HDTV quality attribute is set on&lt;br /&gt;
the channel they are included in. This will have the effect of giving the&lt;br /&gt;
program the HDTV quality only for the airing on the HD channel.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;channel&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&amp;quot;&lt;span class="n"&gt;FOX8p2&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;foxtel&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;au&lt;/span&gt;&amp;quot; &lt;span class="n"&gt;oztivoid&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&amp;quot;&lt;span class="n"&gt;FOX8&lt;/span&gt;&amp;quot; &lt;span class="n"&gt;timeoffset&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&amp;quot;&lt;span class="o"&gt;+&lt;/span&gt;7200&amp;quot;&lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Finally it is possible to apply a per-channel time offset to each program.&lt;br /&gt;
Where the --timezone option keeps the localtime the same and changes the&lt;br /&gt;
timezone offset, this offsets the start and stop times for each program by&lt;br /&gt;
the specified number of seconds.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;  &lt;span class="nt"&gt;&amp;lt;/channelmap&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/config&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Finally the channelmap and config are closed off.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Saunders</dc:creator><pubDate>Tue, 12 Mar 2013 11:25:09 -0000</pubDate><guid>https://sourceforge.netc495c060d1e1eca5ba23985e84545b3de37d0bbe</guid></item></channel></rss>