[mythtv-commits] Ticket #2919: Oldrecorded and recorded entries do not match when preroll used

MythTV mythtv at cvs.mythtv.org
Tue Jan 30 20:17:27 UTC 2007


#2919: Oldrecorded and recorded entries do not match when preroll used
--------------------+-------------------------------------------------------
 Reporter:  red321  |        Owner:  ijr    
     Type:  defect  |       Status:  new    
 Priority:  minor   |    Milestone:  unknown
Component:  mythtv  |      Version:  0.20   
 Severity:  medium  |   Resolution:         
--------------------+-------------------------------------------------------
Comment (by anonymous):

 Replying to [ticket:2919 red321]:
 > When preroll is set, oldrecorded.startime is the programme start, and
 recorded.starttime and the filename is the recording starttime including
 preroll. When myth.rebuilddatabase searches oldrecorded for title and
 description, it fails as the filename and oldrecorded don't match.time

 When I re-read this I realised it wasn't very well explained.

 The problem is that myth.rebuilddatabase uses the orphan files filename to
 rebuild the database entry. The orphaned filename is by default
 chanid_(starttime+prerolloffset).mpg. The chanid and
 (starttime+prerolloffset) are used to find entries in oldrecorded. However
 as oldrecorded is populated with chanid and starttime (without preroll),
 unless preroll is 0, then there are no matches.

 The solution is either to use startime for all entries (filename,
 recorded, oldrecorded) or always use actual startime which includes
 preroll.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/2919#comment:1>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list