diff options
| author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2026-01-04 00:33:53 -0800 |
|---|---|---|
| committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2026-01-04 00:33:53 -0800 |
| commit | 353ee5cd4d785ed73dc51da695c3b4036c60a75b (patch) | |
| tree | 3125554366f11a9b6ec66a7bc4b9d2ab32226f5b | |
| parent | d866a7b168a530eacb88b5ae9e84fc53b44952c5 (diff) | |
| download | mpv-iptv-menu-353ee5cd4d785ed73dc51da695c3b4036c60a75b.tar.gz mpv-iptv-menu-353ee5cd4d785ed73dc51da695c3b4036c60a75b.tar.xz | |
block sorting of menus where it is stupid
| -rw-r--r-- | main.lua | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |
