Introduction
Introduction Statistics Contact Development Disclaimer Help
Merge branch 'main' into testing - mpv-jellyfin - MPV script for adding an inte…
Log
Files
Refs
README
LICENSE
---
commit 048486f98183fe562606f66055e9fce02b5e5d71
parent 8bec6ae51093850eb2850c5f1242b77f5d93a74b
Author: Sebastien MacDougall-Landry <[email protected]…
Date: Thu, 23 May 2024 21:38:05 -0400
Merge branch 'main' into testing
Diffstat:
M scripts/jellyfin.lua | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/scripts/jellyfin.lua b/scripts/jellyfin.lua
@@ -184,7 +184,7 @@ end
local function key_up()
if #items > 1 then
selection[layer] = selection[layer] - 1
- if selection[layer] == 0 then selection[layer] = table.getn(it…
+ if selection[layer] == 0 then selection[layer] = #items end
update_data()
end
end
@@ -204,7 +204,7 @@ end
local function key_down()
if #items > 1 then
selection[layer] = selection[layer] + 1
- if selection[layer] > table.getn(items) then selection[layer] …
+ if selection[layer] > #items then selection[layer] = 1 end
update_data()
end
end
@@ -244,7 +244,7 @@ toggle_overlay = function()
mp.add_forced_key_binding("DOWN", "jdown", key_down, { repeata…
mp.add_forced_key_binding("LEFT", "jleft", key_left)
if not connected then connect() end
- if table.getn(items) == 0 then
+ if #items == 0 then
update_overlay()
else
update_data()
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.