diff options
| author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2026-01-07 23:43:57 -0800 |
|---|---|---|
| committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2026-01-07 23:43:57 -0800 |
| commit | bab1ee9fb8e566b4f7c808c9136d4b3f32e4d600 (patch) | |
| tree | 8a3f1a00959a284e0826ac6a257f23f26da33070 | |
| parent | 44644dfb4e3e19438c6499a6b49458fc8b382ac1 (diff) | |
| download | mpv-iptv-menu-bab1ee9fb8e566b4f7c808c9136d4b3f32e4d600.tar.gz mpv-iptv-menu-bab1ee9fb8e566b4f7c808c9136d4b3f32e4d600.tar.xz | |
display channel logos in EPG
| -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), |
