Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
WEBUI: streaming profile updates, epggrab channels updates
  • Loading branch information
perexg committed Dec 2, 2015
1 parent c7242ea commit 1c1c814
Show file tree
Hide file tree
Showing 2 changed files with 119 additions and 5 deletions.
22 changes: 21 additions & 1 deletion src/epggrab/channel.c
Expand Up @@ -650,12 +650,20 @@ const idclass_t epggrab_channel_class = {
.ic_save = epggrab_channel_class_save,
.ic_get_title = epggrab_channel_class_get_title,
.ic_delete = epggrab_channel_class_delete,
.ic_groups = (const property_group_t[]) {
{
.name = N_("Configuration"),
.number = 1,
},
{}
},
.ic_properties = (const property_t[]){
{
.type = PT_BOOL,
.id = "enabled",
.name = N_("Enabled"),
.off = offsetof(epggrab_channel_t, enabled),
.group = 1
},
{
.type = PT_STR,
Expand All @@ -664,59 +672,68 @@ const idclass_t epggrab_channel_class = {
.get = epggrab_channel_class_modid_get,
.set = epggrab_channel_class_modid_set,
.opts = PO_RDONLY | PO_HIDDEN,
.group = 1
},
{
.type = PT_STR,
.id = "module",
.name = N_("Module"),
.get = epggrab_channel_class_module_get,
.opts = PO_RDONLY | PO_NOSAVE,
.group = 1
},
{
.type = PT_STR,
.id = "path",
.name = N_("Path"),
.get = epggrab_channel_class_path_get,
.opts = PO_RDONLY | PO_NOSAVE,
.group = 1
},
{
.type = PT_TIME,
.id = "updated",
.name = N_("Updated"),
.off = offsetof(epggrab_channel_t, laststamp),
.opts = PO_RDONLY | PO_NOSAVE,
.group = 1
},
{
.type = PT_STR,
.id = "id",
.name = N_("ID"),
.off = offsetof(epggrab_channel_t, id),
.group = 1
},
{
.type = PT_STR,
.id = "name",
.name = N_("Name"),
.off = offsetof(epggrab_channel_t, name),
.group = 1
},
{
.type = PT_STR,
.id = "names",
.name = N_("Names"),
.get = epggrab_channel_class_names_get,
.set = epggrab_channel_class_names_set,
.group = 1
},
{
.type = PT_S64,
.intsplit = CHANNEL_SPLIT,
.id = "number",
.name = N_("Number"),
.off = offsetof(epggrab_channel_t, lcn),
.group = 1
},
{
.type = PT_STR,
.id = "icon",
.name = N_("Icon"),
.off = offsetof(epggrab_channel_t, icon),
.group = 1
},
{
.type = PT_STR,
Expand All @@ -727,19 +744,22 @@ const idclass_t epggrab_channel_class = {
.get = epggrab_channel_class_channels_get,
.list = channel_class_get_list,
.rend = epggrab_channel_class_channels_rend,
.group = 1
},
{
.type = PT_BOOL,
.id = "only_one",
.name = N_("Only one auto channel"),
.off = offsetof(epggrab_channel_t, only_one),
.notify = epggrab_channel_class_only_one_notify,
.group = 1
},
{
.type = PT_STR,
.id = "comment",
.name = N_("Comment"),
.off = offsetof(epggrab_channel_t, comment)
.off = offsetof(epggrab_channel_t, comment),
.group = 1
},
{}
}
Expand Down

0 comments on commit 1c1c814

Please sign in to comment.