diff options
| -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 |
