summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2026-01-04 00:33:53 -0800
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2026-01-04 00:33:53 -0800
commit353ee5cd4d785ed73dc51da695c3b4036c60a75b (patch)
tree3125554366f11a9b6ec66a7bc4b9d2ab32226f5b
parentd866a7b168a530eacb88b5ae9e84fc53b44952c5 (diff)
downloadmpv-iptv-menu-353ee5cd4d785ed73dc51da695c3b4036c60a75b.tar.gz
mpv-iptv-menu-353ee5cd4d785ed73dc51da695c3b4036c60a75b.tar.xz
block sorting of menus where it is stupid
-rw-r--r--main.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index d44548a..a2a1a99 100644
--- a/main.lua
+++ b/main.lua
@@ -609,6 +609,7 @@ local function open_option_title_info(title, info)
local m = {
options = options,
title = title,
+ type = 'info',
}
if info.cover_big and info.cover_big ~= '' then
m.img_url = info.cover_big
@@ -869,6 +870,10 @@ end
local function toggle_menu_sort()
local menu = menus[depth]
+ if menu.type ~= 'group' and menu.type ~= 'search' then
+ return
+ end
+
local key = menu.type == 'search' and 'search_options' or 'options'
if not menu['sorted_' .. key] then