summaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2025-05-20 18:56:20 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2025-05-20 18:56:20 -0700
commit8fbfafa62bf8483e5385226a245f8481ee021c45 (patch)
treed54c232b3014ad225043ac3015a3bfc8c215b226 /main.lua
parentbcb9d82a1f4d5b168d11270d7e3fdfd1b9591831 (diff)
downloadmpv-iptv-menu-8fbfafa62bf8483e5385226a245f8481ee021c45.tar.gz
mpv-iptv-menu-8fbfafa62bf8483e5385226a245f8481ee021c45.tar.xz
ignore blank image urls in source data
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.lua b/main.lua
index 88e15bc..3b5c3d9 100644
--- a/main.lua
+++ b/main.lua
@@ -517,7 +517,7 @@ function update_osd()
osd_option_text(opt, info) ..
osd_option_path(opt, info)
- if selected and opt.stream_icon then
+ if selected and opt.stream_icon and opt.stream_icon ~= '' then
img = get_image_path(opt.stream_icon, true)
end
end
@@ -1075,7 +1075,7 @@ local function open_option_movie_info(opt)
options=options,
title='Movie Info: ' .. opt.name,
}
- if info.cover_big then
+ if info.cover_big and info.cover_big ~= '' then
m.img_url = info.cover_big
end