Index: mythtv/programs/mythfilldatabase/xmltvparser.cpp
===================================================================
--- mythtv/programs/mythfilldatabase/xmltvparser.cpp (revision 14786)
+++ mythtv/programs/mythfilldatabase/xmltvparser.cpp (working copy)
@@ -368,11 +368,20 @@
pginfo->catType = "movie";
}
}
- else if (info.tagName() == "date" && pginfo->airdate == "")
+ else if (info.tagName() == "date")
{
- // Movie production year
QString date = getFirstText(info);
- pginfo->airdate = date.left(4);
+
+ if (pginfo->airdate.isEmpty())
+ {
+ // Movie/Film production year
+ pginfo->airdate = date.left(4);
+ }
+
+ // If the date includes the day, month and year
+ // then use it for original air date
+ if (date.length >= 8 && pginfo->originalairdate.isEmpty())
+ pginfo->originalairdate = date;
}
else if (info.tagName() == "star-rating")
{