diff options
Diffstat (limited to 'catalogue.lua')
| -rw-r--r-- | catalogue.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/catalogue.lua b/catalogue.lua index 47a1b7a..d781cf4 100644 --- a/catalogue.lua +++ b/catalogue.lua @@ -7,13 +7,13 @@ local mt = {} mt.__index = mt function catalogue.new() - o = setmetatable({data = {}}, mt) + local t = setmetatable({data = {}}, mt) - o:add({ + t:add({ type = 'group', id = 'root', }) - o:add({ + t:add({ type = 'group', id = 'favourites', parent_id = 'root', @@ -21,7 +21,7 @@ function catalogue.new() lazy = true, -- prevent infinite recursion on search }) - return o + return t end function mt:get(id) @@ -95,14 +95,14 @@ function mt:load_xc_section(section) vv.group_type = 'series' vv.id = section.id .. ':series:' .. v.series_id vv.series_id = v.series_id - vv.image = util.strip_ne(v.cover) + vv.img_url = util.strip_ne(v.cover) vv.lazy = true -- avoid API calls on search else vv.type = 'stream' vv.id = section.id .. ':stream:' .. v.stream_id vv.stream_type = v.stream_type vv.stream_id = v.stream_id - vv.image = util.strip_ne(v.stream_icon) + vv.img_url = util.strip_ne(v.stream_icon) vv.epg_channel_id = util.strip_ne(v.epg_channel_id) end |
