From 44644dfb4e3e19438c6499a6b49458fc8b382ac1 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Wed, 7 Jan 2026 23:25:48 -0800 Subject: more images cleanup --- xc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xc.lua') 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 -- cgit v1.2.3-70-g09d2