[mythtv] Recordings List oddities

David Engel gigem at comcast.net
Thu Feb 9 22:06:49 UTC 2006


On Tue, Feb 07, 2006 at 02:53:18PM -0600, David Engel wrote:
> On Tue, Feb 07, 2006 at 02:48:04PM -0500, Steven Adeff wrote:
> > Recordings started while watching liveTV and hitting the record button
> > on my remote.
> 
> I'll see if I can reproduce the problems.

I was not able to reproduce you LiveTv problems.

On Thu, Feb 09, 2006 at 12:00:44PM -0500, Steven Adeff wrote:
> On 2/8/06, Steven Adeff <adeffs.mythtv at gmail.com> wrote:
> > just reverted to 8788 and its still happening...
> 
> David, any ideas?

Sorry, I got busy with other things.  Please apply the attached patch
and make sure your Watch Recordings sorting is set to time instead of
programid or something else.  Then, recreate the problem and send me
the output from mythfrontend.

David
-- 
David Engel
gigem at comcast.net
-------------- next part --------------
Index: programs/mythfrontend/playbackbox.cpp
===================================================================
--- programs/mythfrontend/playbackbox.cpp	(revision 8910)
+++ programs/mythfrontend/playbackbox.cpp	(working copy)
@@ -1506,12 +1506,17 @@
     oldsTitle.remove(prefixes);
     oldsTitle = oldsTitle.lower();
     titleIndex = titleList.count() - 1;
+    fprintf(stderr, "PBFill: ti=%d, pi=%d, ot=%s, os=%s\n",
+            titleIndex, progIndex, oldsTitle.ascii(), 
+            oldstartts.toString().ascii());
     for (int i = titleIndex; i >= 0; i--)
     {
         sTitle = titleList[i];
         sTitle.remove(prefixes);
         sTitle = sTitle.lower();
-        
+
+        fprintf(stderr, "        ost=%s, st=%s\n", 
+                oldsTitle.ascii(), sTitle.ascii());
         if (oldsTitle > sTitle)
             break;
 
@@ -1520,6 +1525,7 @@
         if (oldsTitle == sTitle)
             break;
     }
+    fprintf(stderr, "PBFill: new ti=%d\n", titleIndex);
 
     // Now do pretty much the same thing for the individual shows on
     // the specific program list if needed.
@@ -1534,6 +1540,9 @@
         {
             p = l->at(i);
 
+            fprintf(stderr, "        os=%s, ps=%s\n",
+                    oldstartts.toString().ascii(), 
+                    p->recstartts.toString().ascii());
             if (listOrder == 0 || type == Delete)
             {
                 if (episodeSort == "OrigAirDate" && titleIndex > 0)
@@ -1578,6 +1587,7 @@
                 break;
         }
     }
+    fprintf(stderr, "PBFill new pi=%d\n", progIndex);
 
     return (infoList != NULL);
 }


More information about the mythtv-dev mailing list