epggrab: stop code bombing out with old config
This commit is contained in:
parent
d5451be03a
commit
1d51982955
1 changed files with 4 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue