[mythtv] [PATCH] category types (movie idenfication)

Isaac Richards ijr at po.cwru.edu
Sun Jun 1 21:30:21 EDT 2003


On Sunday 25 May 2003 11:52 am, Ben Bucksch wrote:
> My TV listing source and grabber provide explicit information about
> which programmes are movies, series etc.. I wanted to use that
> information to filter out only movies in my EPG app.

Ok...

Only thing I don't like is:

@@ -176,7 +179,7 @@
     QString xmltvid = element.attribute("id", "");
     QStringList split = QStringList::split(" ", xmltvid);
 
-    if (!isgist)
+    if (isNorthAmerica)
     {
         chaninfo->xmltvid = split[0];
         chaninfo->chanstr = split[0];

This.  Won't this change everyone's xmltvid that's not using tv_grab_na?

@@ -450,6 +475,17 @@
         }
     }
 
+    if (pginfo->category == "" && pginfo->catType != "")
+        pginfo->category == pginfo->catType;
+
+    /* Do what MythWeb does and assume that programmes with
+       star-rating in America are movies. This allows us to
+       unify app code with grabbers which explicitly deliver that
+       info. */
+    if (isNorthAmerica && pginfo->catType == "" &&
+        pginfo->stars != "" && pginfo->airdate != "")
+        pginfo->catType == "movie";

Those == are typos, right?

Isaac


More information about the mythtv-dev mailing list