]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
epggrab: stop code bombing out with old config
authorAdam Sutton <dev@adamsutton.me.uk>
Sat, 16 Nov 2013 10:47:02 +0000 (10:47 +0000)
committerAdam Sutton <dev@adamsutton.me.uk>
Sat, 16 Nov 2013 10:47:02 +0000 (10:47 +0000)
src/epggrab/module.c

index a83be8dcb17f8f7f02b3a2fcb2c1cffda0167824..b8f6d52678f85b089f6352102d661773fa44e161 100644 (file)
@@ -206,8 +206,10 @@ static void _epggrab_module_channel_load
     egc->number = u32;
   if ((a = htsmsg_get_list(m, "channels"))) {
     HTSMSG_FOREACH(f, a) {
-      if ((ch  = channel_find_by_uuid(f->hmf_str)))
-        epggrab_channel_link(egc, ch);
+      if ((str = htsmsg_field_get_str(f))) {
+        if ((ch = channel_find_by_uuid(str)))
+          epggrab_channel_link(egc, ch);
+      }
     }
 
   /* Compat with older 3.1 code */