Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixes epg (last commit)

  • Loading branch information...
commit 75f3d4ab5bf7e568a91e2fc21b27becc5ddf4c60 1 parent 8a28be8
oneadvent authored February 13, 2012

Showing 1 changed file with 16 additions and 2 deletions. Show diff stats Hide diff stats

  1. 18  src/epg.c
18  src/epg.c
@@ -543,7 +543,21 @@ epg_unlink_from_channel(channel_t *ch)
543 543
  *
544 544
  * Based on the content types defined in EN 300 468
545 545
  */
546  
-static const char *groupnames[0xFF] = {
  546
+static const char *groupnames[16] = {
  547
+      [1] = "Movie / Drama",
  548
+        [2] = "News / Current affairs",
  549
+          [3] = "Show / Games",
  550
+            [4] = "Sports",
  551
+              [5] = "Children's / Youth",
  552
+                [6] = "Music",
  553
+                  [7] = "Art / Culture",
  554
+                    [8] = "Social / Political issues / Economics",
  555
+                      [9] = "Education / Science / Factual topics",
  556
+                        [10] = "Leisure hobbies",
  557
+                          [11] = "Special characteristics",
  558
+};
  559
+
  560
+static const char *groupdefinition[0xFF] = {
547 561
     /* ox1Y are Movie/Drama */
548 562
     [0x10] = "Movie / Drama",
549 563
     [0x11] = "Detective / Thriller",
@@ -689,7 +703,7 @@ epg_content_group_find_by_name(const char *name)
689 703
 {
690 704
       unsigned int i;
691 705
       for(i = 0; i < 0xFF; i++) {
692  
-         if(groupnames[i] != NULL && !strcasecmp(name, groupnames[i])){
  706
+         if(groupdefinition[i] != NULL && !strcasecmp(name, groupdefinition[i])){
693 707
              int b = (i >> 4) & 0xF;
694 708
              return b;
695 709
          }

0 notes on commit 75f3d4a

Please sign in to comment.
Something went wrong with that request. Please try again.