<div dir="ltr">On Tue, Aug 12, 2008 at 3:59 PM, Michael T. Dean <span dir="ltr"><<a href="mailto:mtdean@thirdcontact.com">mtdean@thirdcontact.com</a>></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">> On Tue, Aug 12, 2008 at 2:28 PM, Christopher Meredith wrote:<br>
>> When using mythfilldatabase with an xml file, it appears to process the<br>
>> data in the "<date>" tag and insert it into the database in the "airdate"<br>
>> field (which only accepts a 4-digit year) instead of the "originalairdate"<br>
>> field (which supports year-month-day). How can I change this behavior?<br>
>><br>
>> Also, does mythfilldatabase recognize the "<live />" tag?<br>
> All the answers you seek can be found in<br>
> "programs/mythfilldatabase/xmltvparser.cpp" in your mythtv source tree.<br>
><br>
<br>
</div>Probably true, but he should likely be seeking some other info... ;)<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 <date> element for the <programme> element, you'll find:<br>
<br>
<!-- The date the programme or film was finished. This will probably<br>
be the same as the copyright date.<br>
--><br>
<!ELEMENT date (#PCDATA)><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't bother submitting a ticket/patch.)<br>
<br>
Pretty sure this was discussed before on the mythtv lists, but I don't<br>
feel like searching for the thread, right now.</blockquote><div><br> Is the OriginalAirDate field in the database deprecated? It does not appear to be used by anything, even the <previously-shown> 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 "previouslyshown" 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>