{
epggrab_channel_t *ec;
- if (htsmsg_get_str(conf, "id") == NULL)
- return NULL;
-
ec = calloc(1, sizeof(*ec));
if (idnode_insert(&ec->idnode, uuid, &epggrab_channel_class, 0)) {
if (uuid)
if (conf)
idnode_load(&ec->idnode, conf);
+ if (ec->id == NULL)
+ ec->id = strdup("");
+
TAILQ_INSERT_TAIL(&epggrab_channel_entries, ec, all_link);
if (RB_INSERT_SORTED(&owner->channels, ec, link, _ch_id_cmp)) {
tvherror(LS_EPGGRAB, "removing duplicate channel id '%s' (uuid '%s')", ec->id, uuid);
char *s;
epggrab_channel_t *ec;
+ if (id == NULL || id[0] == '\0') {
+ tvhwarn(LS_EPGGRAB, "%s: ignoring empty EPG id source", mod->id);
+ return NULL;
+ }
+
SKEL_ALLOC(epggrab_channel_skel);
s = epggrab_channel_skel->id = tvh_strdupa(id);