[mythtv-commits] Ticket #2864: sort by original airdate doesn't work for pre-1970 programs
MythTV
mythtv at cvs.mythtv.org
Sun Jan 7 02:43:36 UTC 2007
#2864: sort by original airdate doesn't work for pre-1970 programs
----------------------------------------+-----------------------------------
Reporter: ajlill at ajlc.waterloo.on.ca | Owner: ijr
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: mythtv | Version: 0.20
Severity: low | Resolution:
----------------------------------------+-----------------------------------
Comment (by ajlill at ajlc.waterloo.on.ca):
But the original airdate is stored in the database as a DATE type, and
manipulated as a QDate both of which start at the beginning of the
gregorian calendar. So it should have nothing to do with unix TIME.
If it just couldn't handle stuff before 1970, I'd expect for a program
that spans 1970, the pre-1970 episodes would be in recorded order and the
post 1970 episodes sorted correctly. This is what you get when some
episodes have no original airdate (or the same oad) and some do. What I
see is that if all episodes are pre 1970, sorting by oad doesn't work, but
if some are post 1970, they are all sorted properly.
Looking at the code, the only reason it should fall back to sorting by
recorddate, is if the original airdates in the programinfo structure are
equal, and the only reason that should happen is if the origial airdate
fetched from the database is empty for both the two programs being
compared. And the entries in the recorded table are not empty and all
different.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2864#comment:2>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list