diff options
Diffstat (limited to 'main.lua')
| -rw-r--r-- | main.lua | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -548,7 +548,7 @@ local function goto_playing() update_osd() end -local function open_epg_programme(prog) +local function open_epg_programme(prog, img_url) local options = { {name = 'Title: ' .. prog.title}, {name = 'Start: ' .. os.date('%a %d %b %H:%M', prog.start)}, @@ -562,11 +562,14 @@ local function open_epg_programme(prog) end end - state:push_menu({ + local menu = state:push_menu({ options = options, title = 'Programme: ' .. prog.title, type = 'epg', }) + if img_url then + menu.img_url = img_url + end update_osd() end @@ -596,11 +599,14 @@ local function open_option_epg(opt) options[i] = prog end - state:push_menu({ + local menu = state:push_menu({ options = options, title = 'EPG: ' .. opt.name .. ' (' .. ch .. ')', type = 'epg', }) + if opt.img_url then + menu.img_url = opt.img_url + end set_cursor(curr, {centre = true, skip_redraw = true}) update_osd() end @@ -751,7 +757,7 @@ local function open_option_info() end if menu.type == 'epg' and opt.programme then - open_epg_programme(opt.programme) + open_epg_programme(opt.programme, menu.img_url) elseif opt.epg_channel_id then open_option_epg(opt) elseif opt.group_type == 'series' then @@ -886,7 +892,7 @@ local function start_search() menu:set_search_cursor(#menu.search_text + 1) menu:set_cursor(1) else - menu = state:push_menu({ + state:push_menu({ title = title, type = 'search', options = search_menu_options(menu.options), |
