[mythtv] [PATCH] mythweb hdtv listing flag patch

James Armstrong james at thearmstrongs.org
Thu Aug 19 11:09:12 EDT 2004


This patch modifies mythweb to show 'HD' on the program listings page if 
the show is broadcast in hdtv.

- James
-------------- next part --------------
Index: mythweb/themes/Default/program_listing.php
===================================================================
RCS file: /var/lib/mythcvs/mythweb/themes/Default/program_listing.php,v
retrieving revision 1.24
diff -u -r1.24 program_listing.php
--- mythweb/themes/Default/program_listing.php	3 Aug 2004 06:40:00 -0000	1.24
+++ mythweb/themes/Default/program_listing.php	19 Aug 2004 15:05:20 -0000
@@ -311,9 +311,17 @@
             if ($parens)
                 echo " ($parens)";
         }
+	$parens = "";
     // Finally, print some other information
         if ($program->previouslyshown)
-            echo "<BR><i>(Rerun)</i>";
+            $parens = "<i>Rerun</i>";
+        if ($program->hdtv) {
+            if ($parens)
+                $parens .= ", ";
+            $parens .=  "<font color=\"yellow\"><b>HD</b></font>";
+	}
+        if ($parens)
+            echo "<BR>($parens)";    
 
     ?></td>
 <?php
-------------- next part --------------
Index: mythweb/includes/programs.php
===================================================================
RCS file: /var/lib/mythcvs/mythweb/includes/programs.php,v
retrieving revision 1.49
diff -u -r1.49 programs.php
--- mythweb/includes/programs.php	6 Jul 2004 04:49:36 -0000	1.49
+++ mythweb/includes/programs.php	19 Aug 2004 15:04:34 -0000
@@ -237,6 +237,7 @@
     var $airdate;
     var $stars;
     var $previouslyshown;
+    var $hdtv;
 
     var $starttime;
     var $endtime;
@@ -360,6 +361,7 @@
             $this->airdate         = _or($program_data['originalairdate'], $program_data['airdate']);
             $this->stars           = $program_data['stars'];
             $this->previouslyshown = $program_data['previouslyshown'];
+            $this->hdtv = $program_data['hdtv'];
             $this->starstring      = $program_data['starstring'];
             $this->rater           = $program_data['rater'];
             $this->rating          = $program_data['rating'];


More information about the mythtv-dev mailing list