epg: allow epg source to be set with auto epg channel unchecked
This commit is contained in:
parent
baab7707a2
commit
266b28cfd1
1 changed files with 1 additions and 10 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue