[mythtv] another little patch for 6544 that shows the title of what is currently being recorded

Kirby Vandivort kvandivo at ks.uiuc.edu
Sun Sep 21 22:22:23 EDT 2003


Another little patch that shows the title of the show that is
currently being recorded, if the encoder is local.

Index: programs/mythbackend/mainserver.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythbackend/mainserver.cpp,v
retrieving revision 1.81
diff -b -u -2 -r1.81 mainserver.cpp
--- programs/mythbackend/mainserver.cpp	20 Sep 2003 04:52:36 -0000	1.81
+++ programs/mythbackend/mainserver.cpp	22 Sep 2003 02:19:57 -0000
@@ -2320,5 +2357,13 @@
 
         if (elink->IsBusyRecording())
-            os << "is recording.\r\n";
+	{
+            os << "is recording";
+            if (elink->isLocal())
+	    {
+               ProgramInfo *pi = elink->GetRecording();
+	       os << " '" << pi->title << "'";
+	    }
+            os << ".\r\n";
+	}
         else
             os << "is not recording.\r\n";
-- 

Kirby Vandivort                      Theoretical and Computational Biophysics 
Email: kvandivo at ks.uiuc.edu          3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/    University of Illinois
Phone: (217) 244-5711                405 N. Mathews Ave
Fax  : (217) 244-6078                Urbana, IL  61801, USA


More information about the mythtv-dev mailing list