From 1d51982955da0dc192f22f35644824bed4ec7b3e Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Sat, 16 Nov 2013 10:47:02 +0000 Subject: [PATCH] epggrab: stop code bombing out with old config --- src/epggrab/module.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/epggrab/module.c b/src/epggrab/module.c index a83be8dc..b8f6d526 100644 --- a/src/epggrab/module.c +++ b/src/epggrab/module.c @@ -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 */