<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.</blockquote><div><br>&nbsp;Is the OriginalAirDate field in the database deprecated? It does not appear to be used by anything, even the &lt;previously-shown&gt; tag, which <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> says is used to indicate when a particular episode was previously shown, including the date.<br>
<br>Looking at the database, it appears that &quot;previouslyshown&quot; is merely a toggle. If there is a date in the tag in the xml, is it ignored?<br><br>I am trying to get to the bottom of how to get the actual original air date to be inserted into the database. Thanks.<br>
</div></div><br></div>