Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
epg: allow epg source to be set with auto epg channel unchecked
  • Loading branch information
bfennema authored and perexg committed Mar 25, 2015
1 parent baab770 commit 266b28c
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/channels.c
Expand Up @@ -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);
Expand Down Expand Up @@ -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 )
{
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 266b28c

Please sign in to comment.