diff options
| author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2026-01-04 13:48:19 -0800 |
|---|---|---|
| committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2026-01-04 13:48:19 -0800 |
| commit | 70ac410af21a931d757fdca65bda18608810394d (patch) | |
| tree | cad1228fa745b441e9c2e23de20507712c00473f | |
| parent | c694f07985200c78e1e645b732fffe5abe4960cf (diff) | |
| download | mpv-iptv-menu-70ac410af21a931d757fdca65bda18608810394d.tar.gz mpv-iptv-menu-70ac410af21a931d757fdca65bda18608810394d.tar.xz | |
use a coloured indicator for missing favourites
| -rw-r--r-- | config.lua | 1 | ||||
| -rw-r--r-- | main.lua | 6 | ||||
| -rw-r--r-- | osd.lua | 3 |
3 files changed, 9 insertions, 1 deletions
@@ -24,6 +24,7 @@ config.colours = { icon_playing = '3366ff', icon_favourite = 'ff00ff', icon_active = 'ff9900', + icon_missing = 'ff0000', } config.cache_dir = mp_utils.join_path(mp.get_script_directory(), 'cache') @@ -181,6 +181,9 @@ local function sort_options(options) local scores = {} for _, v in ipairs(options) do local score = 0 + if v.missing then + score = score - 4 + end if favourites[v.id] then score = score + 2 end @@ -266,7 +269,8 @@ local function favourites_group_menu_options(group) -- removed options[#options+1] = { id = id, - name = '∗MISSING∗ ' .. id, + name = id, + missing = true, } end end @@ -107,6 +107,9 @@ function mt:option_icons(opt, info) if opt.active then str = str .. colours.icon_active .. '\226\143\186 ' end + if opt.missing then + str = str .. colours.icon_missing .. '!!!MISSING!!! ' + end return str end |
