epg: allow epg source to be set with auto epg channel unchecked

This commit is contained in:
Ben Fennema 2015-03-24 19:07:20 -07:00 committed by Jaroslav Kysela
parent baab7707a2
commit 266b28cfd1

View file

@ -250,7 +250,7 @@ channel_class_epggrab_set ( void *o, const void *v )
}
/* Link */
if (ch->ch_epgauto && l) {
if (l) {
HTSMSG_FOREACH(f, l) {
if ((ec = epggrab_channel_find_by_id(htsmsg_field_get_str(f))))
save |= epggrab_channel_link(ec, ch);
@ -281,14 +281,6 @@ channel_class_epggrab_list ( void *o )
return m;
}
static void
channel_class_epgauto_notify ( void *obj )
{
channel_t *ch = obj;
if (!ch->ch_epgauto)
channel_class_epggrab_set(obj, NULL);
}
static const void *
channel_class_bouquet_get ( void *o )
{
@ -365,7 +357,6 @@ const idclass_t channel_class = {
.id = "epgauto",
.name = "Auto EPG Channel",
.off = offsetof(channel_t, ch_epgauto),
.notify = channel_class_epgauto_notify,
},
{
.type = PT_STR,