epggrab: stop code bombing out with old config

This commit is contained in:
Adam Sutton 2013-11-16 10:47:02 +00:00
parent d5451be03a
commit 1d51982955

View 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 */