[mythtv-users] Hauppauge PVR questions

Gary Buhrmaster gary.buhrmaster at gmail.com
Mon Oct 14 23:46:36 UTC 2013


On Sun, Oct 13, 2013 at 6:31 PM, David Engel <david at istwok.net> wrote:
...
> Yes, we'd accept a patch adding the input display name to the recorded
> table.  Please also make that information available in the details
> screen and to the theme.

How about the people interested "crowdsource" the patch?
Here is my contribution to update the schema.  Untested,
but looks right.  Someone else can contribute to the theme,
and someone else can contribute to the details screen, and
lastly someone else can add the code to fill in the value
(yes, I chose the "easy" one to do).

Note that I have not "vetted" the chosen column name, so
the devs might have a better name in mind.



diff --git a/mythtv/libs/libmythtv/dbcheck.cpp
b/mythtv/libs/libmythtv/dbcheck.cpp
index db8d59b..198c5c2 100644
--- a/mythtv/libs/libmythtv/dbcheck.cpp
+++ b/mythtv/libs/libmythtv/dbcheck.cpp
@@ -2521,7 +2521,19 @@ NULL
         if (!performActualUpdate(&updates[0], "1318", dbver))
             return false;
     }
-
+
+    if (dbver == "1318")
+    {
+        // Add support for storing cardinput displayname to recorded
+        const char *updates[] = {
+            "ALTER TABLE recorded ADD COLUMN cardinputdisplayname
varchar(64) NOT NULL DEFAULT '';",
+            NULL
+        };
+
+        if (!performActualUpdate(&updates[0], "1319", dbver))
+            return false;
+    }
+

     return true;
 }


More information about the mythtv-users mailing list