<div dir="ltr">On Tue, Aug 12, 2008 at 3:59 PM, Michael T. Dean <span dir="ltr">&lt;<a href="mailto:mtdean@thirdcontact.com">mtdean@thirdcontact.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 08/12/2008 03:52 PM, Carl Fongheiser wrote:<br>
<div class="Ih2E3d">&gt; On Tue, Aug 12, 2008 at 2:28 PM, Christopher Meredith wrote:<br>
&gt;&gt; When using mythfilldatabase with an xml file, it appears to process the<br>
&gt;&gt; data in the &quot;&lt;date&gt;&quot; tag and insert it into the database in the &quot;airdate&quot;<br>
&gt;&gt; field (which only accepts a 4-digit year) instead of the &quot;originalairdate&quot;<br>
&gt;&gt; field (which supports year-month-day). How can I change this behavior?<br>
&gt;&gt;<br>
&gt;&gt; Also, does mythfilldatabase recognize the &quot;&lt;live /&gt;&quot; tag?<br>
&gt; All the answers you seek can be found in<br>
&gt; &quot;programs/mythfilldatabase/xmltvparser.cpp&quot; in your mythtv source tree.<br>
&gt;<br>
<br>
</div>Probably true, but he should likely be seeking some other info... &nbsp;;)<br>
<br>
If you look at<br>
<a href="http://xmltv.cvs.sourceforge.net/*checkout*/xmltv/xmltv/xmltv.dtd" target="_blank">http://xmltv.cvs.sourceforge.net/*checkout*/xmltv/xmltv/xmltv.dtd</a> and<br>
look at the &lt;date&gt; element for the &lt;programme&gt; element, you&#39;ll find:<br>
<br>
&lt;!-- The date the programme or film was finished. This will probably<br>
be the same as the copyright date.<br>
--&gt;<br>
&lt;!ELEMENT date (#PCDATA)&gt;<br>
<br>
And, since few (if any) films or other programs/programmes are actually<br>
aired on the copyright date, the requested change is not correct.<br>
<br>
(So, feel free to make the change for your own personal copy of MythTV,<br>
but, IMHO, you shouldn&#39;t bother submitting a ticket/patch.)<br>
<br>
Pretty sure this was discussed before on the mythtv lists, but I don&#39;t<br>
feel like searching for the thread, right now.<br>
<br>
Mike</blockquote><div><br>Thanks for that information. In this case, the data grabber I am using (mc2xml) is using the &lt;date&gt; tag for the original airdate. I would think this would be the preferred use, since the date of close of filming for TV shows is not only difficult to find, it is practically useless. Mythfilldatabase has an option to flag as &quot;rerun&quot; episodes which have an original airdate prior to today&#39;s date. Since xmltvparser.cpp appears to &quot;hardcode&quot; the originalairdate to &quot;0000-00-00,&quot; this option in mythfilldatabase would also seem to be useless.<br>
<br>Of course, this is just my observation. I&#39;m sure there&#39;s some consideration I&#39;m unaware of.<br></div></div></div>