summaryrefslogtreecommitdiff
path: root/xc.lua
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2026-01-07 23:25:48 -0800
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2026-01-07 23:25:48 -0800
commit44644dfb4e3e19438c6499a6b49458fc8b382ac1 (patch)
treee3697a8d8cef0bfe7e72450346b15b75e4a34abd /xc.lua
parent8fd7556551ee6eeb353ac8e6815cdc78b361682b (diff)
downloadmpv-iptv-menu-44644dfb4e3e19438c6499a6b49458fc8b382ac1.tar.gz
mpv-iptv-menu-44644dfb4e3e19438c6499a6b49458fc8b382ac1.tar.xz
more images cleanup
Diffstat (limited to 'xc.lua')
-rw-r--r--xc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xc.lua b/xc.lua
index 723f9cb..e1f37d7 100644
--- a/xc.lua
+++ b/xc.lua
@@ -31,7 +31,7 @@ function mt:get(path, params)
capture_stdout = true,
playback_only = false,
})
- if res.status == 0 then
+ if res and res.status == 0 then
return res.stdout
end
end
@@ -103,7 +103,7 @@ json.dump(
capture_stdout = true,
playback_only = false,
})
- if res.status == 0 then
+ if res and res.status == 0 then
return mp_utils.parse_json(res.stdout)
end
end