From: Adam Sutton Date: Sat, 16 Nov 2013 10:47:02 +0000 (+0000) Subject: epggrab: stop code bombing out with old config X-Git-Tag: v4.1~2405 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1d51982955da0dc192f22f35644824bed4ec7b3e;p=thirdparty%2Ftvheadend.git epggrab: stop code bombing out with old config --- diff --git a/src/epggrab/module.c b/src/epggrab/module.c index a83be8dcb..b8f6d5267 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 */