[mythtv-commits] Ticket #6478: Add update timestamp to program table for incremental program data retrieval
MythTV
mythtv at cvs.mythtv.org
Mon Apr 20 01:59:16 UTC 2009
#6478: Add update timestamp to program table for incremental program data
retrieval
---------------------------------------+------------------------------------
Reporter: chasedouglas at gmail.com | Owner: stuartm
Type: patch | Status: new
Priority: minor | Milestone: 0.22
Component: MythTV - Mythfilldatabase | Version: head
Severity: medium | Mlocked: 0
---------------------------------------+------------------------------------
As a developer of !MyMote, I would like to be able to download incremental
sets of program data each time !MyMote is opened. The attached patch
implements this update capability.
It does a number of things:
1. Adds a timestamp column to the program table
2. Modifies ProgramData::clearDataByChannel() to leave the program table
as-is by default
3. Modifies mythfilldatabase so it updates the first and last flags only
when the resultant value is different than the current value
4. Modifies the DataDirectProcessor::!DataDirectProgramUpdate() so that
it:
a. Removes program entries that do not match any of the new data direct
entries
b. Removes new data direct entries that match any of the old program
entries
c. Inserts what is left of the new data direct entries into the program
table
I have tested this with schedules direct and have not found any issues. I
believe that other forms of program table changes are done through updates
and not through wipe and reinsert like !DataDirectProcessor does. Thus,
this should be all the changes necessary.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/6478>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list