Skip to content

Commit

Permalink
- replay: try to fix videos w/o title; thx to jokel
Browse files Browse the repository at this point in the history
  • Loading branch information
vanhofen committed Mar 28, 2023
1 parent b3bdf07 commit 53ee4e3
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions scripts-lua/plugins/replay/replay.lua
Expand Up @@ -16,7 +16,7 @@ duplicates = false
--duplicates = true

-- list specific channels only
--channels = {1, 14, 20, 12, 5, 15, 19, 7, 36, 3, 4, 33}
--channels = {1,14,20,12,5,15,19,7,36,3,4,33}
channels = {}

if next(channels) ~= nil then
Expand Down Expand Up @@ -240,14 +240,27 @@ function mainMenu()
local d = 0
for i, v in ipairs(replayList) do
d = d+1
replayMenu:addItem{ type="forwarder",
action="play_live",
name=v.name .. " - " .. v.title,
hint=v.info1,
enabled=v.hasVideo,
id=i,
directkey=godirectkey(d)
}
if v.hasvideo ~= nil then
local _name = "n/a"
local _hint = "n/a"
if v.name ~= nil and v.name ~= "" then
_name = v.name
end
if v.title ~= nil and v.title ~= "" then
_name = _name .. " - " .. v.title
end
if v.info1 ~= nil and v.info1 ~= "" then
_hint = v.info1
end
replayMenu:addItem{ type="forwarder",
action="play_live",
name=_name
hint=_hint,
enabled=v.hasVideo,
id=i,
directkey=godirectkey(d)
}
end
end
replayMenu:exec()
replayMenu:hide()
Expand Down

0 comments on commit 53ee4e3

Please sign in to comment.